FIL-plugins: fix cross compilation

Nick Cao c2e920a1 30c0a2f7

+13 -7
+13 -7
pkgs/applications/audio/FIL-plugins/default.nix
··· 1 - { lib, stdenv, fetchurl, ladspaH 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , ladspaH 2 5 }: 3 6 4 7 stdenv.mkDerivation rec { 5 8 pname = "FIL-plugins"; 6 9 version = "0.3.0"; 10 + 7 11 src = fetchurl { 8 12 url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2"; 9 - sha256 = "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"; 13 + hash = "sha256-HAvycSEZZfZwoVp3g7QWcwfbdyZKwWJKBuVmeWTajuk="; 10 14 }; 11 15 12 16 buildInputs = [ ladspaH ]; 13 17 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 + postPatch = '' 19 + substituteInPlace Makefile \ 20 + --replace /usr/lib/ladspa "$out/lib/ladspa" \ 21 + --replace g++ "$CXX" 18 22 ''; 19 23 20 - preInstall="mkdir -p $out/lib/ladspa"; 24 + preInstall = '' 25 + mkdir -p "$out/lib/ladspa" 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";