about summary refs log tree commit diff
path: root/pkgs/applications/audio/dirt
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 /pkgs/applications/audio/dirt
parentb9de32de5bd26dd7279622f6a4c6aa336e044d1b (diff)
dirt: include sound samples (close #8179)
also add self as maintainer
Diffstat (limited to 'pkgs/applications/audio/dirt')
-rw-r--r--pkgs/applications/audio/dirt/default.nix12
1 files changed, 10 insertions, 2 deletions
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 ];
   };
 }