about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnders Papitto <anderspapitto@gmail.com>2015-06-04 13:01:01 -0700
committerVladimír Čunát <vcunat@gmail.com>2015-06-08 10:16:03 +0200
commit50e9fa5719b233c6c679033871a20427fd619949 (patch)
tree4e7099fc431da8b456e831c4257feac0208a2c0b
parentb9de32de5bd26dd7279622f6a4c6aa336e044d1b (diff)
dirt: include sound samples (close #8179)
also add self as maintainer
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/applications/audio/dirt/default.nix12
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index 174eced43c287..3ae9d5ceb9424 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -16,6 +16,7 @@
   amiddelk = "Arie Middelkoop <amiddelk@gmail.com>";
   amorsillo = "Andrew Morsillo <andrew.morsillo@gmail.com>";
   AndersonTorres = "Anderson Torres <torres.anderson.85@gmail.com>";
+  anderspapitto = "Anders Papitto <anderspapitto@gmail.com>";
   andres = "Andres Loeh <ksnixos@andres-loeh.de>";
   antono = "Antono Vasiljev <self@antono.info>";
   ardumont = "Antoine R. Dumont <eniotna.t@gmail.com>";
diff --git a/pkgs/applications/audio/dirt/default.nix b/pkgs/applications/audio/dirt/default.nix
index 1db4515ae23b3..74adf4533fa1c 100644
--- a/pkgs/applications/audio/dirt/default.nix
+++ b/pkgs/applications/audio/dirt/default.nix
@@ -9,13 +9,21 @@ stdenv.mkDerivation rec {
     sha256 = "1shbyp54q64g6bsl6hhch58k3z1dyyy9ph6cq2xvdf8syy00sisz";
   };
   buildInputs = [ libsndfile libsamplerate liblo jack2 ];
+  postPatch = ''
+    sed -i "s|./samples|$out/share/dirt/samples|" file.h
+  '';
   configurePhase = ''
     export DESTDIR=$out
   '';
+  postInstall = ''
+    mkdir -p $out/share/dirt/
+    cp -r samples $out/share/dirt/
+  '';
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "An unimpressive thingie for playing bits of samples with some level of accuracy";
     homepage = "https://github.com/tidalcycles/Dirt";
-    license = stdenv.lib.licenses.gpl3;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ anderspapitto ];
   };
 }