nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 boost,
6 libX11,
7 libGL,
8 liblo,
9 libjack2,
10 ladspaH,
11 lv2,
12 pkg-config,
13 rubberband,
14 libsndfile,
15 fftwFloat,
16 libsamplerate,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "zam-plugins";
21 version = "4.4";
22
23 src = fetchFromGitHub {
24 owner = "zamaudio";
25 repo = "zam-plugins";
26 rev = version;
27 hash = "sha256-pjnhDavKnyQjPF4nUO+j1J+Qtw8yIYMY9A5zBMb4zFU=";
28 fetchSubmodules = true;
29 };
30
31 nativeBuildInputs = [ pkg-config ];
32 buildInputs = [
33 boost
34 libX11
35 libGL
36 liblo
37 libjack2
38 ladspaH
39 lv2
40 rubberband
41 libsndfile
42 fftwFloat
43 libsamplerate
44 ];
45
46 postPatch = ''
47 patchShebangs ./dpf/utils/generate-ttl.sh
48 for f in plugins/*/Makefile; do
49 substituteInPlace "$f" \
50 --replace-quiet 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
51 done
52 '';
53
54 makeFlags = [
55 "PREFIX=${placeholder "out"}"
56 ];
57
58 enableParallelBuilding = true;
59
60 meta = with lib; {
61 homepage = "https://www.zamaudio.com/?p=976";
62 description = "Collection of LV2/LADSPA/VST/JACK audio plugins by ZamAudio";
63 license = licenses.gpl2Plus;
64 maintainers = [ maintainers.magnetophon ];
65 platforms = platforms.linux;
66 # tries to run dpf/utils/lv2_ttl_generator (built for host)
67 broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
68 };
69}