about summary refs log tree commit diff
path: root/pkgs/applications/audio/jaaa
diff options
context:
space:
mode:
authorcodyopel <codyopel@gmail.com>2015-05-28 01:57:38 -0400
committercodyopel <codyopel@gmail.com>2015-05-28 01:57:38 -0400
commit0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0 (patch)
tree5e37c6f6084767275121a4e851729932ab199d03 /pkgs/applications/audio/jaaa
parent4d12ea8311c8a55bd905ed4b9d5480481c4c3726 (diff)
downloadnixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.tar
nixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.tar.gz
nixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.tar.bz2
nixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.tar.lz
nixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.tar.xz
nixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.tar.zst
nixlib-0a9d9639ea1e606b50a42f5f5798ef0ac22f63e0.zip
jaaa: refactor
Diffstat (limited to 'pkgs/applications/audio/jaaa')
-rw-r--r--pkgs/applications/audio/jaaa/default.nix23
1 files changed, 7 insertions, 16 deletions
diff --git a/pkgs/applications/audio/jaaa/default.nix b/pkgs/applications/audio/jaaa/default.nix
index b855bd296604..0f29ce34cacf 100644
--- a/pkgs/applications/audio/jaaa/default.nix
+++ b/pkgs/applications/audio/jaaa/default.nix
@@ -25,29 +25,20 @@ stdenv.mkDerivation rec {
     "-I${zita-alsa-pcmi}/include"
   ];
 
-  patchPhase = ''
-    cd source/
-    sed -i "s@clthreads.h@${libclthreads}/include@g" $(find . -name '*.cc')
-    sed -i "s@clxclient.h@${libclxclient}/include@g" $(find . -name '*.cc')
-    sed -i "s@clthreads.h@${libclthreads}/include@g" $(find . -name '*.h')
-    sed -i "s@clxclient.h@${libclxclient}/include@g" $(find . -name '*.h')
-  '';
-
-  buildlPhase = ''
-    make PREFIX="$out"
-  '';
+  makeFlags = [
+    "PREFIX=$(out)"
+    "SUFFIX=''"
+  ];
 
-  installPhase = ''
-    echo zita= ${zita-alsa-pcmi}
-    make PREFIX="$out" install
-    install -Dm644 ../README "$out/README"
+  preConfigure = ''
+    cd ./source/
   '';
 
   meta = with stdenv.lib; {
     homepage = http://kokkinizita.linuxaudio.org/linuxaudio/index.html;
     description = "JACK and ALSA Audio Analyser";
     license = licenses.gpl2;
-    maintainers = [ maintainers.magnetophon ];
+    maintainers = with maintainers; [ magnetophon ];
     platforms = platforms.linux;
   };
 }