summary refs log tree commit diff
path: root/pkgs/os-specific/linux/lxcfs
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2016-11-21 13:11:40 +0000
committerJörg Thalheim <joerg@higgsboson.tk>2016-12-02 13:52:03 +0100
commitaf609b02546d5361a8200a024df2c689dbba9d1e (patch)
tree8dc28084fa9cb42293e619ad9a9341df7d1f20f1 /pkgs/os-specific/linux/lxcfs
parent18757f3a11e93e65d4ac6432103f7c27466ee8b3 (diff)
downloadnixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.tar
nixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.tar.gz
nixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.tar.bz2
nixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.tar.lz
nixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.tar.xz
nixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.tar.zst
nixpkgs-af609b02546d5361a8200a024df2c689dbba9d1e.zip
lxcfs: init at 2.0.4
Diffstat (limited to 'pkgs/os-specific/linux/lxcfs')
-rw-r--r--pkgs/os-specific/linux/lxcfs/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/lxcfs/default.nix b/pkgs/os-specific/linux/lxcfs/default.nix
new file mode 100644
index 00000000000..ceaed205db9
--- /dev/null
+++ b/pkgs/os-specific/linux/lxcfs/default.nix
@@ -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 ];
+  };
+}