* Nasty hacks to get dpkg to set the architecture correctly.

svn path=/nixpkgs/trunk/; revision=11100
This commit is contained in:
Eelco Dolstra 2008-03-13 14:58:17 +00:00
parent c1389c4f36
commit 842eda63f8
2 changed files with 13 additions and 1 deletions

View File

@ -121,7 +121,6 @@ rec {
ftp://ftp.debian.org/debian/
];
# Ubuntu.
ubuntu = [
http://nl.archive.ubuntu.com/ubuntu/

View File

@ -10,6 +10,19 @@ stdenv.mkDerivation {
configureFlags = "--without-dselect"; # --with-admindir=/var/lib/dpkg
preConfigure = ''
# Can't use substitute pending resolution of NIXPKGS-89.
sed -s 's^/usr/bin/perl^${perl}/bin/perl^' -i scripts/dpkg-architecture.pl
# Nice: dpkg has a circular dependency on itself. Its configure
# script calls scripts/dpkg-architecture, which calls "dpkg" in
# $PATH. It doesn't actually use its result, but fails if it
# isn't present. So make a dummy available.
touch $TMPDIR/dpkg
chmod +x $TMPDIR/dpkg
PATH=$TMPDIR:$PATH
'';
buildInputs = [perl zlib bzip2];
meta = {