1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 lv2,
6 fftwFloat,
7 pkg-config,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "talentedhack";
12 version = "1.86";
13
14 src = fetchFromGitHub {
15 owner = "jeremysalwen";
16 repo = "talentedhack";
17 rev = "v${version}";
18 sha256 = "0kwvayalysmk7y49jq0k16al252md8d45z58hphzsksmyz6148bx";
19 };
20
21 nativeBuildInputs = [ pkg-config ];
22
23 buildInputs = [
24 lv2
25 fftwFloat
26 ];
27
28 # To avoid name clashes, plugins should be compiled with symbols hidden, except for `lv2_descriptor`:
29 preConfigure = ''
30 sed -r 's/^CFLAGS.*$/\0 -fvisibility=hidden/' -i Makefile
31 '';
32
33 installPhase = ''
34 d=$out/lib/lv2/talentedhack.lv2
35 mkdir -p $d
36 cp *.so *.ttl $d
37 '';
38
39 meta = with lib; {
40 homepage = "https://github.com/jeremysalwen/TalentedHack";
41 description = "LV2 port of Autotalent pitch correction plugin";
42 license = licenses.gpl3;
43 maintainers = [ maintainers.michalrus ];
44 platforms = platforms.linux;
45 };
46}