nixpkgs/pkgs/by-name/wo/wolf-shaper/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

49 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, libjack2, lv2, xorg, liblo, libGL, libXcursor, pkg-config }:
stdenv.mkDerivation rec {
pname = "wolf-shaper";
version = "1.0.2";
src = fetchFromGitHub {
owner = "wolf-plugins";
repo = "wolf-shaper";
rev = "v${version}";
hash = "sha256-4oi1wnex6eNRHUWXZHnvrmqp4veFuPJqD0YuOhDepg4=";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config ];
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/
'';
meta = with lib; {
homepage = "https://wolf-plugins.github.io/wolf-shaper/";
description = "Waveshaper plugin with spline-based graph editor";
license = licenses.gpl3Plus;
maintainers = [ maintainers.magnetophon ];
platforms = [ "i686-linux" "x86_64-linux" ];
mainProgram = "wolf-shaper";
};
}