amd64 is still x86

svn path=/nixpkgs/trunk/; revision=24648
This commit is contained in:
Michael Raskin 2010-11-10 17:32:08 +00:00
parent 477bb198c7
commit df168884a0

View File

@ -11,11 +11,14 @@ rec {
inherit (s) name;
inherit buildInputs;
phaseNames = ["doPatch" "killUsr" "doMakeInstall"];
phaseNames = ["doPatch" "fixX86Def" "killUsr" "doMakeInstall"];
patches = [./constants.patch];
makeFlags = [
"DESTDIR=$out"
];
fixX86Def = a.fullDepEntry (''
sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
'') ["doUnpack" "minInit"];
killUsr = a.fullDepEntry (''
sed -e s@/usr@@ -i Makefile
'') ["doUnpack" "minInit"];