diff options
author | William A. Kennington III <william@wkennington.com> | 2015-05-19 23:48:55 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-05-20 00:12:20 -0700 |
commit | 3ee72b7379964467526dd8de88415ce363981ef8 (patch) | |
tree | ce487cb9099f8b93f190dbcf25cbb8b4ea72848d /pkgs/os-specific/linux/lxc | |
parent | 5c6f06e56a5a456be830a0f0795f6c8c6dc13a06 (diff) |
lxc: Cleanup postInstall
Diffstat (limited to 'pkgs/os-specific/linux/lxc')
-rw-r--r-- | pkgs/os-specific/linux/lxc/default.nix | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/pkgs/os-specific/linux/lxc/default.nix b/pkgs/os-specific/linux/lxc/default.nix index 0d80fe6d2b1be..8115aa1055be4 100644 --- a/pkgs/os-specific/linux/lxc/default.nix +++ b/pkgs/os-specific/linux/lxc/default.nix @@ -41,18 +41,13 @@ stdenv.mkDerivation rec { "--enable-tests" ]; - installFlags = [ "DESTDIR=\${out}" ]; - - postInstall = '' - mv $out/$out/* $out - DIR=$out/$out - while rmdir $DIR 2>/dev/null; do - DIR="$(dirname "$DIR")" - done - - # Remove the unneeded var/lib directories - rm -rf $out/var - ''; + installFlags = [ + "localstatedir=\${TMPDIR}" + "sysconfdir=\${out}/etc" + "sysconfigdir=\${out}/etc/default" + "READMEdir=\${TMPDIR}/var/lib/lxc/rootfs" + "LXCPATH=\${TMPDIR}/var/lib/lxc" + ]; meta = { homepage = "http://lxc.sourceforge.net"; |