summary refs log tree commit diff
path: root/pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2016-11-07 14:06:35 +0100
committerBart Brouns <bart@magnetophon.nl>2016-11-07 14:06:35 +0100
commitf63c179b0b0eb08cd06adf5deb973370da80314c (patch)
treef76191e818c2bdc042b81e63829e4b8756288f9a /pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix
parent77afa8e6b7287abbf961fa03f73e9bdfe37bb542 (diff)
downloadnixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.tar
nixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.tar.gz
nixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.tar.bz2
nixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.tar.lz
nixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.tar.xz
nixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.tar.zst
nixpkgs-f63c179b0b0eb08cd06adf5deb973370da80314c.zip
magnetophonDSP: update to new faust libraries
Diffstat (limited to 'pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix')
-rw-r--r--pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix b/pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix
new file mode 100644
index 00000000000..0bb2034fc46
--- /dev/null
+++ b/pkgs/applications/audio/magnetophonDSP/RhythmDelay/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }:
+stdenv.mkDerivation rec {
+  name = "RhythmDelay-${version}";
+  version = "2.1";
+
+  src = fetchFromGitHub {
+    owner = "magnetophon";
+    repo = "RhythmDelay";
+    rev = "V${version}";
+    sha256 = "1j0bjl9agz43dcrcrbiqd7fv7xsxgd65s4ahhv5pvcr729y0fxg4";
+  };
+
+  buildInputs = [ faust2jaqt faust2lv2 ];
+
+  buildPhase = ''
+    faust2jaqt -time -vec -t 99999 RhythmDelay.dsp
+    sed -i "s|\[ *scale *: *log *\]||g ; s|\btgroup\b|hgroup|g" "RhythmDelay.dsp"
+    faust2lv2  -time -vec -t 99999 -gui RhythmDelay.dsp
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp RhythmDelay $out/bin/
+    mkdir -p $out/lib/lv2
+    cp -r RhythmDelay.lv2/ $out/lib/lv2
+  '';
+
+  meta = {
+    description = "Tap a rhythm into your delay! For jack and lv2";
+    homepage = https://github.com/magnetophon/RhythmDelay;
+    license = stdenv.lib.licenses.gpl3;
+    maintainers = [ stdenv.lib.maintainers.magnetophon ];
+  };
+}