2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub , libjack2, lv2, xorg, liblo, libGL, libXcursor, pkg-config }:
|
2018-10-31 17:26:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wolf-shaper";
|
2020-10-14 10:38:06 +01:00
|
|
|
version = "0.1.8";
|
2018-10-31 17:26:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pdesaulniers";
|
|
|
|
repo = "wolf-shaper";
|
|
|
|
rev = "v${version}";
|
2020-10-14 10:38:06 +01:00
|
|
|
sha256 = "1j9xmh1nkf45ay1c5dz2g165qvrwlanzcq6mvb3nfxar265drd9q";
|
2018-10-31 17:26:46 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-10-31 17:26:46 +00:00
|
|
|
buildInputs = [ libjack2 lv2 xorg.libX11 liblo libGL libXcursor ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BUILD_LV2=true"
|
|
|
|
"BUILD_DSSI=true"
|
|
|
|
"BUILD_VST2=true"
|
|
|
|
"BUILD_JACK=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs ./dpf/utils/generate-ttl.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/lv2
|
|
|
|
mkdir -p $out/lib/dssi
|
|
|
|
mkdir -p $out/lib/vst
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp -r bin/wolf-shaper.lv2 $out/lib/lv2/
|
|
|
|
cp -r bin/wolf-shaper-dssi* $out/lib/dssi/
|
|
|
|
cp -r bin/wolf-shaper-vst.so $out/lib/vst/
|
|
|
|
cp -r bin/wolf-shaper $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pdesaulniers.github.io/wolf-shaper/";
|
2018-10-31 17:26:46 +00:00
|
|
|
description = "Waveshaper plugin with spline-based graph editor";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|