molot-lite: simplify definition
This commit is contained in:
parent
9841a891ef
commit
bf838029d7
@ -1,26 +0,0 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
@ -1,14 +1,37 @@
|
||||
{ stdenvNoCC, molot-mono-lite, molot-stereo-lite }:
|
||||
with stdenvNoCC.lib;
|
||||
{ stdenv, fetchurl, unzip, lv2 }:
|
||||
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
stdenv.mkDerivation {
|
||||
pname = "molot-lite";
|
||||
version = molot-mono-lite.version;
|
||||
version = "unstable-2014-04-23";
|
||||
|
||||
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
|
||||
src = fetchurl {
|
||||
# fetchzip does not accept urls that do not end with .zip.
|
||||
url = "https://sourceforge.net/p/molot/code/ci/c4eddc426f8d5821e8ebcf1d67265365e4c8c52a/tree/molot_src.zip?format=raw";
|
||||
sha256 = "1c47dwfgrmn9459px8s5zikcqyr0777v226qzcxlr6azlcjwr51b";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
buildInputs = [ lv2 ];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make -C Molot_Mono_Lite
|
||||
make -C Molot_Stereo_Lite
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Mono_Lite
|
||||
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Stereo_Lite
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "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;
|
||||
};
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
{ 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
|
||||
'';
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
{ 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
|
||||
'';
|
||||
}
|
@ -21497,8 +21497,6 @@ in
|
||||
xmrig-proxy = callPackage ../applications/misc/xmrig/proxy.nix { };
|
||||
|
||||
molot-lite = callPackage ../applications/audio/molot-lite { };
|
||||
molot-mono-lite = callPackage ../applications/audio/molot-lite/mono.nix { };
|
||||
molot-stereo-lite = callPackage ../applications/audio/molot-lite/stereo.nix { };
|
||||
|
||||
monkeysAudio = callPackage ../applications/audio/monkeys-audio { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user