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 : ${lib.makeBinPath [ coreutils util-linux ]}
60 # liblxcfs.so is reloaded with dlopen()
61 patchelf --set-rpath "$(patchelf --print-rpath "$out/bin/lxcfs"):$out/lib" "$out/bin/lxcfs"
66 incus-container-legacy-init = nixosTests.incus.container-legacy-init;
67 incus-container-systemd-init = nixosTests.incus.container-systemd-init;
70 updateScript = nix-update-script { };
74 description = "FUSE filesystem for LXC";
75 mainProgram = "lxcfs";
76 homepage = "https://linuxcontainers.org/lxcfs";
77 changelog = "https://linuxcontainers.org/lxcfs/news/";
78 license = lib.licenses.asl20;
79 platforms = lib.platforms.linux;
80 maintainers = lib.teams.lxc.members;