nixpkgs-suyu/pkgs/os-specific/linux/lxcfs/default.nix

38 lines
961 B
Nix
Raw Normal View History

2017-03-01 23:02:53 +01:00
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam }:
2016-11-21 14:11:40 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
2017-06-20 02:01:53 +02:00
name = "lxcfs-2.0.7";
2016-11-21 14:11:40 +01:00
2017-03-01 23:02:53 +01:00
src = fetchFromGitHub {
owner = "lxc";
repo = "lxcfs";
2017-06-20 02:01:53 +02:00
rev = name;
sha256 = "1z6d52dc12rcplgc9jdgi3lbxm6ahlsjgs1k8v8kvn261xsq1m0a";
2016-11-21 14:11:40 +01:00
};
2017-03-01 23:02:53 +01:00
nativeBuildInputs = [ pkgconfig help2man autoreconfHook ];
2016-11-21 14:11:40 +01:00
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;
2017-06-20 02:01:53 +02:00
maintainers = with maintainers; [ mic92 fpletz ];
2016-11-21 14:11:40 +01:00
};
}