lxc: remove with lib
This commit is contained in:
parent
27064dd722
commit
f8160d8856
1 changed files with 6 additions and 7 deletions
|
@ -6,7 +6,6 @@
|
|||
, libcap ? null, systemd ? null
|
||||
}:
|
||||
|
||||
with lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lxc";
|
||||
version = "4.0.12";
|
||||
|
@ -48,10 +47,10 @@ stdenv.mkDerivation rec {
|
|||
"--disable-api-docs"
|
||||
"--with-init-script=none"
|
||||
"--with-distro=nixos" # just to be sure it is "unknown"
|
||||
] ++ optional (libapparmor != null) "--enable-apparmor"
|
||||
++ optional (libselinux != null) "--enable-selinux"
|
||||
++ optional (libseccomp != null) "--enable-seccomp"
|
||||
++ optional (libcap != null) "--enable-capabilities"
|
||||
] ++ lib.optional (libapparmor != null) "--enable-apparmor"
|
||||
++ lib.optional (libselinux != null) "--enable-selinux"
|
||||
++ lib.optional (libseccomp != null) "--enable-seccomp"
|
||||
++ lib.optional (libcap != null) "--enable-capabilities"
|
||||
++ [
|
||||
"--disable-examples"
|
||||
"--enable-python"
|
||||
|
@ -90,7 +89,7 @@ stdenv.mkDerivation rec {
|
|||
meta = {
|
||||
homepage = "https://linuxcontainers.org/";
|
||||
description = "Userspace tools for Linux Containers, a lightweight virtualization system";
|
||||
license = licenses.lgpl21Plus;
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
|
||||
longDescription = ''
|
||||
LXC is the userspace control package for Linux Containers, a
|
||||
|
@ -100,7 +99,7 @@ stdenv.mkDerivation rec {
|
|||
mechanisms to Linux’s existing process management infrastructure.
|
||||
'';
|
||||
|
||||
platforms = platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = lib.teams.lxc.members;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue