mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2025-08-02 14:55:53 -03:00
Update to version 3.3.0
This commit is contained in:
parent
e18a4c048c
commit
83998493f7
8 changed files with 54 additions and 33 deletions
17
default.nix
17
default.nix
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, lib, stdenv, fetchFromGitHub, makeWrapper }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dzgui";
|
||||
version = "0.1";
|
||||
version = "3.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aclist";
|
||||
|
@ -27,21 +27,18 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
patches = [
|
||||
./dont-write-desktop-entry-during-runtime.patch
|
||||
./patches/dont-hardcode-zenity.patch
|
||||
./patches/dont-write-desktop-entry-during-runtime.patch
|
||||
./patches/dont-check-map-count.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e 's|/usr/bin/zenity|${pkgs.gnome.zenity}/bin/zenity|' \
|
||||
-e 's|2>/dev/null||' \
|
||||
dzgui.sh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -DT dzgui.sh $out/bin/.dzgui-unwrapped_
|
||||
install -DT ${./dzgui.desktop} $out/share/applications/dzgui.desktop
|
||||
makeWrapper $out/bin/.dzgui-unwrapped_ $out/bin/dzgui \
|
||||
--prefix PATH ':' ${lib.makeBinPath runtimeDeps}
|
||||
|
||||
install -DT ${./dzgui.desktop} $out/share/applications/dzgui.desktop
|
||||
install -DT images/dzgui $out/share/icons/hicolor/256x256/apps/dzgui.png
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue