same fix but now using stdenv.lib.optionals recommended by shlevy
svn path=/nixpkgs/trunk/; revision=26859
This commit is contained in:
parent
ece5a6bfc7
commit
0686dd5767
@ -14,12 +14,12 @@ rec {
|
|||||||
phaseNames = ["doPatch" "fixX86Def" "killUsr" "doMakeInstall"];
|
phaseNames = ["doPatch" "fixX86Def" "killUsr" "doMakeInstall"];
|
||||||
patches = [./constants.patch];
|
patches = [./constants.patch];
|
||||||
|
|
||||||
# fixes http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
|
# using BACKEND=x86emu on 64bit systems fixes:
|
||||||
my64bitFlags= if (a.stdenv.system == "x86_64-linux") then ["BACKEND=x86emu"] else [""];
|
# http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"DESTDIR=$out"
|
"DESTDIR=$out"
|
||||||
] ++ [my64bitFlags];
|
] ++ a.stdenv.lib.optionals ( a.stdenv.system == "x86_64-linux" ) [ "BACKEND=x86emu" ];
|
||||||
|
|
||||||
fixX86Def = a.fullDepEntry (''
|
fixX86Def = a.fullDepEntry (''
|
||||||
sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
|
sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
|
||||||
'') ["doUnpack" "minInit"];
|
'') ["doUnpack" "minInit"];
|
||||||
|
Loading…
Reference in New Issue
Block a user