mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
lxcfs: init at 2.0.4
This commit is contained in:
parent
18757f3a11
commit
af609b0254
2 changed files with 37 additions and 0 deletions
36
pkgs/os-specific/linux/lxcfs/default.nix
Normal file
36
pkgs/os-specific/linux/lxcfs/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue