4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub , libjack2, lv2, xorg, liblo, libGL, libXcursor, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wolf-shaper";
|
|
version = "0.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pdesaulniers";
|
|
repo = "wolf-shaper";
|
|
rev = "v${version}";
|
|
sha256 = "1j9xmh1nkf45ay1c5dz2g165qvrwlanzcq6mvb3nfxar265drd9q";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
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://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" ];
|
|
};
|
|
}
|