summary refs log tree commit diff
path: root/pkgs/tools/filesystems/gocryptfs
diff options
context:
space:
mode:
authorD Anzorge <d.anzorge@gmail.com>2021-09-30 17:52:42 +0200
committerD Anzorge <d.anzorge@gmail.com>2021-09-30 17:52:42 +0200
commit209b1e43471a853883ca3c862006894585baeb01 (patch)
treee873c7d8662e899e2e92bdc9c8884bfc41d374fb /pkgs/tools/filesystems/gocryptfs
parent91f7d46272d857c375678bd930f00a69ef53e7ad (diff)
downloadnixpkgs-209b1e43471a853883ca3c862006894585baeb01.tar
nixpkgs-209b1e43471a853883ca3c862006894585baeb01.tar.gz
nixpkgs-209b1e43471a853883ca3c862006894585baeb01.tar.bz2
nixpkgs-209b1e43471a853883ca3c862006894585baeb01.tar.lz
nixpkgs-209b1e43471a853883ca3c862006894585baeb01.tar.xz
nixpkgs-209b1e43471a853883ca3c862006894585baeb01.tar.zst
nixpkgs-209b1e43471a853883ca3c862006894585baeb01.zip
gocryptfs: ensure fusermount setuid wrapper is used if present
Diffstat (limited to 'pkgs/tools/filesystems/gocryptfs')
-rw-r--r--pkgs/tools/filesystems/gocryptfs/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/gocryptfs/default.nix b/pkgs/tools/filesystems/gocryptfs/default.nix
index 8cb9d58bc4e..2211d0e3103 100644
--- a/pkgs/tools/filesystems/gocryptfs/default.nix
+++ b/pkgs/tools/filesystems/gocryptfs/default.nix
@@ -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
   '';