about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-08-29 13:08:17 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-08-29 13:08:17 +0100
commite9648952dc32f1d11956567844060b0ffe8ee307 (patch)
tree68820d6963198f7bc39d5d7956be4fd98623d81b /pkgs/applications/misc
parentd881b024d492fea78d9987a6ffeaa1e3290be668 (diff)
downloadnixlib-e9648952dc32f1d11956567844060b0ffe8ee307.tar
nixlib-e9648952dc32f1d11956567844060b0ffe8ee307.tar.gz
nixlib-e9648952dc32f1d11956567844060b0ffe8ee307.tar.bz2
nixlib-e9648952dc32f1d11956567844060b0ffe8ee307.tar.lz
nixlib-e9648952dc32f1d11956567844060b0ffe8ee307.tar.xz
nixlib-e9648952dc32f1d11956567844060b0ffe8ee307.tar.zst
nixlib-e9648952dc32f1d11956567844060b0ffe8ee307.zip
direwolf: 1.3 -> 1.4
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/direwolf/default.nix27
1 files changed, 14 insertions, 13 deletions
diff --git a/pkgs/applications/misc/direwolf/default.nix b/pkgs/applications/misc/direwolf/default.nix
index d4c8b1ada6c3..f1e33ea53571 100644
--- a/pkgs/applications/misc/direwolf/default.nix
+++ b/pkgs/applications/misc/direwolf/default.nix
@@ -6,35 +6,36 @@ with stdenv.lib;
 
 stdenv.mkDerivation rec {
   name = "direwolf-${version}";
-  version = "1.3";
+  version = "1.4";
 
   src = fetchFromGitHub {
     owner = "wb2osz";
     repo = "direwolf";
     rev = version;
-    sha256 = "1x6vvl3fy70ic5pqvqsyr0bkqwim8m9jaqnm5ls8z8i66rwq23fg";
+    sha256 = "033sffjs2dz48077hc58jr4lxxs8md1fyfh4lig6ib7pyigiv1y0";
   };
 
   buildInputs = [
     espeak perl python
   ] ++ (optional stdenv.isLinux alsaLib);
 
-  patchPhase = ''
-        substituteInPlace Makefile.* \
-          --replace /usr/share $out/share
+  postPatch = ''
+    for i in Makefile.*; do
+      substituteInPlace "$i" \
+        --replace /usr/share $out/share
+    done
 
-        substituteInPlace dwespeak.sh \
-          --replace espeak ${espeak}/bin/espeak
-        '';
+    substituteInPlace dwespeak.sh \
+      --replace espeak ${espeak}/bin/espeak
+  '';
 
-  installPhase = ''
-    mkdir -p $out/bin 
-    make INSTALLDIR=$out install
-    '';
+  preInstall = ''
+    mkdir -p $out/bin
+  '';
+  installFlags = [ "INSTALLDIR=$(out)" ];
 
   meta = {
     description = "A Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway";
-    # On the page: This page will be disappearing on October 8, 2015.
     homepage = https://github.com/wb2osz/direwolf/;
     license = licenses.gpl2;
     platforms = platforms.unix;