* Nasty hacks to get dpkg to set the architecture correctly.
svn path=/nixpkgs/trunk/; revision=11100
This commit is contained in:
parent
c1389c4f36
commit
842eda63f8
|
@ -121,7 +121,6 @@ rec {
|
||||||
ftp://ftp.debian.org/debian/
|
ftp://ftp.debian.org/debian/
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# Ubuntu.
|
# Ubuntu.
|
||||||
ubuntu = [
|
ubuntu = [
|
||||||
http://nl.archive.ubuntu.com/ubuntu/
|
http://nl.archive.ubuntu.com/ubuntu/
|
||||||
|
|
|
@ -10,6 +10,19 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
configureFlags = "--without-dselect"; # --with-admindir=/var/lib/dpkg
|
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];
|
buildInputs = [perl zlib bzip2];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue