tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
FIL-plugins: fix cross compilation
Nick Cao
2 years ago
c2e920a1
30c0a2f7
+13
-7
1 changed file
expand all
collapse all
unified
split
pkgs
applications
audio
FIL-plugins
default.nix
+13
-7
pkgs/applications/audio/FIL-plugins/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, ladspaH
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchurl
4
4
+
, ladspaH
2
5
}:
3
6
4
7
stdenv.mkDerivation rec {
5
8
pname = "FIL-plugins";
6
9
version = "0.3.0";
10
10
+
7
11
src = fetchurl {
8
12
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
9
9
-
sha256 = "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw";
13
13
+
hash = "sha256-HAvycSEZZfZwoVp3g7QWcwfbdyZKwWJKBuVmeWTajuk=";
10
14
};
11
15
12
16
buildInputs = [ ladspaH ];
13
17
14
14
-
patchPhase = ''
15
15
-
sed -i 's@/usr/bin/install@install@g' Makefile
16
16
-
sed -i 's@/bin/rm@rm@g' Makefile
17
17
-
sed -i 's@/usr/lib/ladspa@$(out)/lib/ladspa@g' Makefile
18
18
+
postPatch = ''
19
19
+
substituteInPlace Makefile \
20
20
+
--replace /usr/lib/ladspa "$out/lib/ladspa" \
21
21
+
--replace g++ "$CXX"
18
22
'';
19
23
20
20
-
preInstall="mkdir -p $out/lib/ladspa";
24
24
+
preInstall = ''
25
25
+
mkdir -p "$out/lib/ladspa"
26
26
+
'';
21
27
22
28
meta = {
23
29
description = "a four-band parametric equaliser, which has the nice property of being stable even while parameters are being changed";