-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtalentedhack.nix
40 lines (34 loc) · 956 Bytes
/
talentedhack.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
lib,
stdenv,
fetchurl,
lv2,
fftwFloat,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "talentedhack";
version = "master";
src = fetchurl {
url = "https://github.com/jeremysalwen/TalentedHack/archive/refs/heads/master.tar.gz";
sha256 = "1bkfi2wkrnsimc2nrqm3h3s7l9jzsn5r3lr17hskf8hk74bgn4yz";
};
nativeBuildInputs = [pkg-config];
buildInputs = [lv2 fftwFloat];
# To avoid name clashes, plugins should be compiled with symbols hidden, except for `lv2_descriptor`:
preConfigure = ''
sed -r 's/^CFLAGS.*$/\0 -fvisibility=hidden/' -i Makefile
'';
installPhase = ''
d=$out/lib/lv2/talentedhack.lv2
mkdir -p $d
cp *.so *.ttl $d
'';
meta = with lib; {
homepage = "https://github.com/jeremysalwen/TalentedHack";
description = "LV2 port of Autotalent pitch correction plugin";
license = licenses.gpl3;
maintainers = [maintainers.michalrus];
platforms = platforms.linux;
};
}