summary refs log tree commit diff
path: root/pkgs/applications/audio/molot-lite
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2020-05-30 13:34:16 +0200
committerOrivej Desh <orivej@gmx.fr>2020-08-18 19:13:09 +0000
commit9841a891ef1835dab14ed1bcf9b283a3450a0768 (patch)
treedf60dcc698c121b888bcef98cd5dd7d2957b8140 /pkgs/applications/audio/molot-lite
parentf8962fd92ed4c1afeb6badbddc57002f53cc4a8f (diff)
downloadnixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.tar
nixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.tar.gz
nixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.tar.bz2
nixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.tar.lz
nixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.tar.xz
nixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.tar.zst
nixpkgs-9841a891ef1835dab14ed1bcf9b283a3450a0768.zip
molot-lite: init at unstable-2014-04-23
Diffstat (limited to 'pkgs/applications/audio/molot-lite')
-rw-r--r--pkgs/applications/audio/molot-lite/base.nix26
-rw-r--r--pkgs/applications/audio/molot-lite/default.nix14
-rw-r--r--pkgs/applications/audio/molot-lite/mono.nix18
-rw-r--r--pkgs/applications/audio/molot-lite/stereo.nix18
4 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/applications/audio/molot-lite/base.nix b/pkgs/applications/audio/molot-lite/base.nix
new file mode 100644
index 00000000000..44880f74901
--- /dev/null
+++ b/pkgs/applications/audio/molot-lite/base.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, unzip, lv2 }:
+
+rec {
+  version = "unstable-2014-04-23";
+
+  src = fetchurl {
+    # the source is zipped inside the repository, so this doesn't work:
+    # url = "mirror://sourceforge/molot/molot_src.zip";
+    url = "https://sourceforge.net/p/molot/code/ci/master/tree/molot_src.zip?format=raw";
+    sha256 = "1c47dwfgrmn9459px8s5zikcqyr0777v226qzcxlr6azlcjwr51b";
+  };
+
+  buildInputs = [ unzip lv2 ];
+
+  unpackPhase = "unzip $src";
+
+  installFlags = [ "INSTALL_DIR=$(out)/lib/lv2" ];
+
+  meta = with stdenv.lib; {
+    description = "a stereo and mono audio signal dynamic range compressor in LV2 format";
+    homepage = "https://sourceforge.net/projects/molot/";
+    license = licenses.gpl3Plus;
+    maintainers = [ maintainers.magnetophon ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/applications/audio/molot-lite/default.nix b/pkgs/applications/audio/molot-lite/default.nix
new file mode 100644
index 00000000000..bb858e10644
--- /dev/null
+++ b/pkgs/applications/audio/molot-lite/default.nix
@@ -0,0 +1,14 @@
+{ stdenvNoCC, molot-mono-lite, molot-stereo-lite }:
+with stdenvNoCC.lib;
+
+
+stdenvNoCC.mkDerivation {
+  pname = "molot-lite";
+  version = molot-mono-lite.version;
+
+  buildCommand = ''
+    mkdir -p $out/lib/lv2/
+    ln -s ${makeLibraryPath [molot-mono-lite]}/lv2/Molot_Mono_Lite.lv2 $out/lib/lv2
+    ln -s ${makeLibraryPath [molot-stereo-lite]}/lv2/Molot_Stereo_Lite.lv2 $out/lib/lv2
+  '';
+}
diff --git a/pkgs/applications/audio/molot-lite/mono.nix b/pkgs/applications/audio/molot-lite/mono.nix
new file mode 100644
index 00000000000..dd2f0e3261a
--- /dev/null
+++ b/pkgs/applications/audio/molot-lite/mono.nix
@@ -0,0 +1,18 @@
+{ stdenv, fetchurl, unzip, lv2 }:
+
+let
+  base = import ./base.nix { inherit stdenv fetchurl unzip lv2; };
+in
+stdenv.mkDerivation {
+  pname = "molot-mono-lite";
+
+  version = base.version;
+  src = base.src;
+  unpackPhase  = base.unpackPhase;
+  buildInputs = base.buildInputs;
+  installFlags = base.installFlags;
+
+  prePatch = ''
+   cd  Molot_Mono_Lite
+  '';
+}
diff --git a/pkgs/applications/audio/molot-lite/stereo.nix b/pkgs/applications/audio/molot-lite/stereo.nix
new file mode 100644
index 00000000000..3cf59868930
--- /dev/null
+++ b/pkgs/applications/audio/molot-lite/stereo.nix
@@ -0,0 +1,18 @@
+{ stdenv, fetchurl, unzip, lv2 }:
+
+let
+  base = import ./base.nix { inherit stdenv fetchurl unzip lv2; };
+in
+stdenv.mkDerivation {
+  pname = "molot-stereo-lite";
+
+  version = base.version;
+  src = base.src;
+  unpackPhase  = base.unpackPhase;
+  buildInputs = base.buildInputs;
+  installFlags = base.installFlags;
+
+  prePatch = ''
+   cd  Molot_Stereo_Lite
+  '';
+}