lxc: remove with lib

This commit is contained in:
Adam Stephens 2023-12-02 09:44:34 -05:00
parent 27064dd722
commit f8160d8856
No known key found for this signature in database

View file

@ -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 Linuxs existing process management infrastructure.
'';
platforms = platforms.linux;
platforms = lib.platforms.linux;
maintainers = lib.teams.lxc.members;
};
}