From 5f683794c26fb685f9d03c78c91665327f6bd0c3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Mar 2008 13:44:58 +0000 Subject: [PATCH] * Set admindir to /var/lib/dpkg. svn path=/nixpkgs/trunk/; revision=11124 --- pkgs/tools/package-management/dpkg/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/dpkg/default.nix b/pkgs/tools/package-management/dpkg/default.nix index 40f04d75bbb..5c1a8df4e3c 100644 --- a/pkgs/tools/package-management/dpkg/default.nix +++ b/pkgs/tools/package-management/dpkg/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation { sha256 = "1x2ajz5z6zbyv80g2b2fwylxiz7bdm71z0i98zasfjf87wkx4ryn"; }; - 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. @@ -21,6 +21,9 @@ stdenv.mkDerivation { touch $TMPDIR/dpkg chmod +x $TMPDIR/dpkg PATH=$TMPDIR:$PATH + + substituteInPlace src/Makefile.in --replace "install-data-local:" "disabled:" + substituteInPlace dpkg-split/Makefile.in --replace "install-data-local:" "disabled:" ''; buildInputs = [perl zlib bzip2];