mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
lxc: Cleanup
This commit is contained in:
parent
7a6b3bf688
commit
85e2c8ff23
@ -1,7 +1,9 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, perl, docbook2x
|
||||
, docbook_xml_dtd_45, systemd, wrapPython
|
||||
, libapparmor ? null, gnutls ? null, libseccomp ? null, cgmanager ? null
|
||||
, libnih ? null, dbus ? null, libcap ? null, python3 ? null
|
||||
, docbook_xml_dtd_45, python3Packages
|
||||
|
||||
# Optional Dependencies
|
||||
, libapparmor ? null, gnutls ? null, libselinux ? null, libseccomp ? null
|
||||
, cgmanager ? null, libnih ? null, dbus ? null, libcap ? null, systemd ? null
|
||||
}:
|
||||
|
||||
let
|
||||
@ -18,10 +20,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "149nq630h9bg87hb3cn086ci0cz29l7fp3i6qf1mqxv7hnildm8p";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook pkgconfig perl docbook2x python3Packages.wrapPython
|
||||
];
|
||||
buildInputs = [
|
||||
autoreconfHook pkgconfig perl docbook2x systemd
|
||||
libapparmor gnutls libseccomp cgmanager libnih dbus libcap python3
|
||||
wrapPython
|
||||
libapparmor gnutls libselinux libseccomp cgmanager libnih dbus libcap
|
||||
python3Packages.python systemd
|
||||
];
|
||||
|
||||
patches = [ ./support-db2x.patch ];
|
||||
@ -31,17 +35,23 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
"--with-rootfs-path=/var/lib/lxc/rootfs"
|
||||
"--enable-doc"
|
||||
"--disable-api-docs"
|
||||
] ++ optional (libapparmor != null) "--enable-apparmor"
|
||||
++ optional (gnutls != null) "--enable-gnutls"
|
||||
++ optional (libselinux != null) "--enable-selinux"
|
||||
++ optional (libseccomp != null) "--enable-seccomp"
|
||||
++ optional (enableCgmanager) "--enable-cgmanager"
|
||||
++ optional (libcap != null) "--enable-capabilities"
|
||||
++ [
|
||||
"--enable-doc"
|
||||
"--enable-tests"
|
||||
"--disable-examples"
|
||||
"--enable-python"
|
||||
"--disable-lua"
|
||||
"--enable-bash"
|
||||
(if doCheck then "--enable-tests" else "--disable-tests")
|
||||
"--with-rootfs-path=/var/lib/lxc/rootfs"
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
installFlags = [
|
||||
"localstatedir=\${TMPDIR}"
|
||||
"sysconfdir=\${out}/etc"
|
||||
@ -50,7 +60,9 @@ stdenv.mkDerivation rec {
|
||||
"LXCPATH=\${TMPDIR}/var/lib/lxc"
|
||||
];
|
||||
|
||||
postInstall = "wrapPythonPrograms";
|
||||
postInstall = ''
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://lxc.sourceforge.net";
|
||||
|
@ -2140,9 +2140,7 @@ let
|
||||
|
||||
lshw = callPackage ../tools/system/lshw { };
|
||||
|
||||
lxc = callPackage ../os-specific/linux/lxc {
|
||||
wrapPython = python3Packages.wrapPython;
|
||||
};
|
||||
lxc = callPackage ../os-specific/linux/lxc { };
|
||||
|
||||
lzip = callPackage ../tools/compression/lzip { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user