lxcfs: init at 2.0.4

This commit is contained in:
Jörg Thalheim 2016-11-21 13:11:40 +00:00
parent 18757f3a11
commit af609b0254
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv, fetchurl, pkgconfig, help2man, fuse, pam }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "lxcfs-${version}";
version = "2.0.4";
src = fetchurl {
url = "https://linuxcontainers.org/downloads/lxcfs/lxcfs-${version}.tar.gz";
sha256 = "0pfrsn7hqccpcnwg4xk8ds0avb2yc9gyvj7bk2bl90vpwsm35j7y";
};
nativeBuildInputs = [ pkgconfig help2man ];
buildInputs = [ fuse pam ];
configureFlags = [
"--with-init-script=systemd"
"--sysconfdir=/etc"
"--localstatedir=/var"
];
installFlags = [ "SYSTEMD_UNIT_DIR=\${out}/lib/systemd" ];
postFixup = ''
# liblxcfs.so is reloaded with dlopen()
patchelf --set-rpath "$(patchelf --print-rpath "$out/bin/lxcfs"):$out/lib" "$out/bin/lxcfs"
'';
meta = {
homepage = https://linuxcontainers.org/lxcfs;
description = "FUSE filesystem for LXC";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ mic92 ];
};
}

View File

@ -2637,6 +2637,7 @@ in
lshw = callPackage ../tools/system/lshw { };
lxc = callPackage ../os-specific/linux/lxc { };
lxcfs = callPackage ../os-specific/linux/lxcfs { };
lxd = callPackage ../tools/admin/lxd { };
lzfse = callPackage ../tools/compression/lzfse { };