Merge pull request #140057 from DeeUnderscore/gocryptfs-fuse-suffix

gocryptfs: ensure fusermount setuid wrapper is used if present
This commit is contained in:
Sandro 2021-09-30 18:53:12 +02:00 committed by GitHub
commit 4862f3c15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
'';