3
0
Fork 0
forked from mirrors/nixpkgs

lxc: Cleanup postInstall

This commit is contained in:
William A. Kennington III 2015-05-19 23:48:55 -07:00
parent 5c6f06e56a
commit 3ee72b7379

View file

@ -41,18 +41,13 @@ stdenv.mkDerivation rec {
"--enable-tests" "--enable-tests"
]; ];
installFlags = [ "DESTDIR=\${out}" ]; installFlags = [
"localstatedir=\${TMPDIR}"
postInstall = '' "sysconfdir=\${out}/etc"
mv $out/$out/* $out "sysconfigdir=\${out}/etc/default"
DIR=$out/$out "READMEdir=\${TMPDIR}/var/lib/lxc/rootfs"
while rmdir $DIR 2>/dev/null; do "LXCPATH=\${TMPDIR}/var/lib/lxc"
DIR="$(dirname "$DIR")" ];
done
# Remove the unneeded var/lib directories
rm -rf $out/var
'';
meta = { meta = {
homepage = "http://lxc.sourceforge.net"; homepage = "http://lxc.sourceforge.net";