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