gocryptfs: support fstab mount

fusermount must be in PATH.
This commit is contained in:
Stefan Wiehler 2021-09-19 16:44:19 +02:00
parent ca67994224
commit 88cddfbfb5

View File

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