From 88cddfbfb5accf02f357a42835f5e7d26ca6db82 Mon Sep 17 00:00:00 2001 From: Stefan Wiehler Date: Sun, 19 Sep 2021 16:44:19 +0200 Subject: [PATCH] gocryptfs: support fstab mount fusermount must be in PATH. --- pkgs/tools/filesystems/gocryptfs/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/filesystems/gocryptfs/default.nix b/pkgs/tools/filesystems/gocryptfs/default.nix index 59b65d4e72ed..8cb9d58bc4ea 100644 --- a/pkgs/tools/filesystems/gocryptfs/default.nix +++ b/pkgs/tools/filesystems/gocryptfs/default.nix @@ -2,6 +2,8 @@ , stdenv , buildGoModule , fetchFromGitHub +, fuse +, makeWrapper , openssl , pandoc , pkg-config @@ -22,6 +24,7 @@ buildGoModule rec { vendorSha256 = "sha256-Q/oBT5xdLpgQCIk7KES6c8+BaCQVUIwCwVufl4oTFRs="; nativeBuildInputs = [ + makeWrapper pkg-config pandoc ]; @@ -48,6 +51,12 @@ buildGoModule rec { popd ''; + postInstall = '' + wrapProgram $out/bin/gocryptfs \ + --prefix PATH : ${lib.makeBinPath [ fuse ]} + ln -s $out/bin/gocryptfs $out/bin/mount.fuse.gocryptfs + ''; + meta = with lib; { description = "Encrypted overlay filesystem written in Go"; license = licenses.mit;