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
-
{ lib, stdenv, fetchurl, ladspaH
0
0
0
2
}:
3
4
stdenv.mkDerivation rec {
5
pname = "FIL-plugins";
6
version = "0.3.0";
0
7
src = fetchurl {
8
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
9
-
sha256 = "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw";
10
};
11
12
buildInputs = [ ladspaH ];
13
14
-
patchPhase = ''
15
-
sed -i 's@/usr/bin/install@install@g' Makefile
16
-
sed -i 's@/bin/rm@rm@g' Makefile
17
-
sed -i 's@/usr/lib/ladspa@$(out)/lib/ladspa@g' Makefile
18
'';
19
20
-
preInstall="mkdir -p $out/lib/ladspa";
0
0
21
22
meta = {
23
description = "a four-band parametric equaliser, which has the nice property of being stable even while parameters are being changed";
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
, ladspaH
5
}:
6
7
stdenv.mkDerivation rec {
8
pname = "FIL-plugins";
9
version = "0.3.0";
10
+
11
src = fetchurl {
12
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
13
+
hash = "sha256-HAvycSEZZfZwoVp3g7QWcwfbdyZKwWJKBuVmeWTajuk=";
14
};
15
16
buildInputs = [ ladspaH ];
17
18
+
postPatch = ''
19
+
substituteInPlace Makefile \
20
+
--replace /usr/lib/ladspa "$out/lib/ladspa" \
21
+
--replace g++ "$CXX"
22
'';
23
24
+
preInstall = ''
25
+
mkdir -p "$out/lib/ladspa"
26
+
'';
27
28
meta = {
29
description = "a four-band parametric equaliser, which has the nice property of being stable even while parameters are being changed";