summary refs log tree commit diff
path: root/pkgs/applications/audio/swh-lv2/default.nix
diff options
context:
space:
mode:
authorCillian de Róiste <goibhniu@fsfe.org>2012-10-02 01:00:13 +0200
committerCillian de Róiste <goibhniu@fsfe.org>2012-10-02 01:00:13 +0200
commit21271fee8d46b9ea926fab659e7a323568ed68ce (patch)
treef0ff1d9a016c1e3835f814e2574dacdff7f6bc86 /pkgs/applications/audio/swh-lv2/default.nix
parentc073071e13d7fa1f6931c20a5668d6e9ff161eed (diff)
downloadnixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.tar
nixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.tar.gz
nixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.tar.bz2
nixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.tar.lz
nixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.tar.xz
nixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.tar.zst
nixpkgs-21271fee8d46b9ea926fab659e7a323568ed68ce.zip
Add the LV2 version of the SWH audio plugins (used for audio production)
Diffstat (limited to 'pkgs/applications/audio/swh-lv2/default.nix')
-rw-r--r--pkgs/applications/audio/swh-lv2/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/swh-lv2/default.nix b/pkgs/applications/audio/swh-lv2/default.nix
new file mode 100644
index 00000000000..9b18ab31abf
--- /dev/null
+++ b/pkgs/applications/audio/swh-lv2/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchgit, fftwSinglePrec, libxslt, lv2, pkgconfig }:
+
+let
+  rev = "ec6b85e19e24ed";
+in
+stdenv.mkDerivation rec {
+  name = "swh-lv2-${rev}";
+
+  src = fetchgit {
+    url = "git://github.com/swh/lv2.git";
+    inherit rev;
+    sha256 = "d0d918ee642cd9649215737fcc008ce2bf55f4ea893a1897138b33775ea60d17";
+  };
+
+  patchPhase = ''
+    sed -e "s#xsltproc#${libxslt}/bin/xsltproc#" -i Makefile
+    sed -e "s#PREFIX = /usr/local#PREFIX = $out#" -i Makefile
+  '';
+
+  buildInputs = [ fftwSinglePrec lv2 pkgconfig ];
+
+  installPhase = "make install-system";
+
+  meta = with stdenv.lib; {
+    homepage = http://plugin.org.uk;
+    description = "LV2 version of Steve Harris' SWH plugins";
+    longDescription = ''
+      SWH plugins include:
+      amp, fast overdrive, overdrive (with colourisation), comb
+      filter, waveshaper, ringmod, divider, diode, decliper, pitch
+      scaler, 16 band equaliser, sinus wavewrapper, hermes filter,
+      chorus, flanger, decimater, oscillator, gverb, phasers, harmonic
+      generators, surround encoders and more.
+    '';
+    license = licenses.gpl3;
+    maintainers = [ maintainers.goibhniu ];
+    platforms = platforms.linux;
+  };
+}