diff --git a/pkgs/default.nix b/pkgs/default.nix index 0eab5e3..ac7faec 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -28,6 +28,8 @@ in { lv2vst = callPackage ./lv2vst { }; + wolf-spectrum = callPackage ./wolf-spectrum { }; + landingpage = callPackage ./landingpage { }; bepasty-client-cli = callPackage ./bepasty-client-cli { }; diff --git a/pkgs/wolf-spectrum/default.nix b/pkgs/wolf-spectrum/default.nix new file mode 100644 index 0000000..af17194 --- /dev/null +++ b/pkgs/wolf-spectrum/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub, libjack2, lv2, xorg, liblo, libGL, pkgconfig }: + +stdenv.mkDerivation rec { + pname = "wolf-spectrum"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "pdesaulniers"; + repo = "wolf-spectrum"; + rev = "v${version}"; + sha256 = "17db1jlj7vb1xyvkdhhrsvdbwb7jqw6i4168cdvlj3yvn2ra8gpm"; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libjack2 lv2 xorg.libX11 liblo libGL xorg.libXcursor ]; + + makeFlags = + [ "BUILD_LV2=true" "BUILD_DSSI=false" "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-spectrum.lv2 $out/lib/lv2/ + #cp -r bin/wolf-spectrum-dssi* $out/lib/dssi/ + cp -r bin/wolf-spectrum-vst.so $out/lib/vst/ + cp -r bin/wolf-spectrum $out/bin/ + ''; + + meta = with stdenv.lib; { + homepage = "https://pdesaulniers.github.io/wolf-shaper/"; + description = "Waveshaper plugin with spline-based graph editor"; + license = licenses.gpl3; + maintainers = [ maintainers.magnetophon ]; + platforms = [ "i686-linux" "x86_64-linux" ]; + }; +}