biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / distrho / default.nix
blob258eec83724e4f9f9a71b0336922a0c94893587c
1 { lib
2 , stdenv
3 , alsa-lib
4 , fetchFromGitHub
5 , fftwFloat
6 , freetype
7 , libGL
8 , libX11
9 , libXcursor
10 , libXext
11 , libXrender
12 , meson
13 , ninja
14 , pkg-config
17 let rpathLibs = [
18   fftwFloat
21 stdenv.mkDerivation rec {
22   pname = "distrho-ports";
23   version = "2021-03-15";
25   src = fetchFromGitHub {
26     owner = "DISTRHO";
27     repo = "DISTRHO-Ports";
28     rev = version;
29     sha256 = "00fgqwayd20akww3n2imyqscmyrjyc9jj0ar13k9dhpaxqk2jxbf";
30   };
32   nativeBuildInputs = [ pkg-config meson ninja ];
34   buildInputs = rpathLibs ++ [
35     alsa-lib
36     freetype
37     libGL
38     libX11
39     libXcursor
40     libXext
41     libXrender
42   ];
44   postFixup = ''
45     for file in \
46       $out/lib/lv2/vitalium.lv2/vitalium.so \
47       $out/lib/vst/vitalium.so \
48       $out/lib/vst3/vitalium.vst3/Contents/x86_64-linux/vitalium.so
49     do
50       patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}:$(patchelf --print-rpath $file)" $file
51     done
52   '';
54   meta = with lib; {
55     homepage = "http://distrho.sourceforge.net/ports";
56     description = "Linux audio plugins and LV2 ports";
57     longDescription = ''
58       Includes:
59         arctican-function
60         arctican-pilgrim
61         dexed
62         drowaudio-distortion
63         drowaudio-distortionshaper
64         drowaudio-flanger
65         drowaudio-reverb
66         drowaudio-tremolo
67         drumsynth
68         easySSP
69         eqinox
70         HiReSam
71         juce-opl
72         klangfalter
73         LUFSMeter
74         LUFSMeter-Multi
75         luftikus
76         obxd
77         pitchedDelay
78         refine
79         stereosourceseparation
80         swankyamp
81         tal-dub-3
82         tal-filter
83         tal-filter-2
84         tal-noisemaker
85         tal-reverb
86         tal-reverb-2
87         tal-reverb-3
88         tal-vocoder-2
89         temper
90         vex
91         vitalium
92         wolpertinger
93     '';
94     license = with licenses; [ gpl2Only gpl3Only gpl2Plus lgpl2Plus lgpl3Only mit ];
95     maintainers = [ maintainers.goibhniu ];
96     platforms = [ "x86_64-linux" ];
97   };