18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 hash = "sha256-5r1X/yUXTMC/2dNhpI+BVYeClIydefg2lurCGt7iA8Y=";
30 # skip RPM spec generation
33 # skip installing systemd files
36 # fix pidfd checks and include
45 (python3.withPackages (p: [ p.jinja2 ]))
48 buildInputs = [ fuse3 ];
55 # `mount` hook requires access to the `mount` command from `util-linux` and `readlink` from `coreutils`:
56 wrapProgram "$out/share/lxcfs/lxc.mount.hook" --prefix PATH : ${
65 # liblxcfs.so is reloaded with dlopen()
66 patchelf --set-rpath "$(patchelf --print-rpath "$out/bin/lxcfs"):$out/lib" "$out/bin/lxcfs"
71 incus-container-legacy-init = nixosTests.incus.container-legacy-init;
72 incus-container-systemd-init = nixosTests.incus.container-systemd-init;
75 updateScript = nix-update-script { };
79 description = "FUSE filesystem for LXC";
80 mainProgram = "lxcfs";
81 homepage = "https://linuxcontainers.org/lxcfs";
82 changelog = "https://linuxcontainers.org/lxcfs/news/";
83 license = lib.licenses.asl20;
84 platforms = lib.platforms.linux;
85 maintainers = lib.teams.lxc.members;