forked from mirrors/nixpkgs
lxc: Cleanup postInstall
This commit is contained in:
parent
5c6f06e56a
commit
3ee72b7379
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue