1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

gocryptfs: ensure fusermount setuid wrapper is used if present

This commit is contained in:
D Anzorge 2021-09-30 17:52:42 +02:00
parent 91f7d46272
commit 209b1e4347

View file

@ -51,9 +51,11 @@ buildGoModule rec {
popd
'';
# use --suffix here to ensure we don't shadow /run/wrappers/bin/fusermount,
# as the setuid wrapper is required to use gocryptfs as non-root on NixOS
postInstall = ''
wrapProgram $out/bin/gocryptfs \
--prefix PATH : ${lib.makeBinPath [ fuse ]}
--suffix PATH : ${lib.makeBinPath [ fuse ]}
ln -s $out/bin/gocryptfs $out/bin/mount.fuse.gocryptfs
'';