gocryptfs: support fstab mount
fusermount must be in PATH.
This commit is contained in:
parent
ca67994224
commit
88cddfbfb5
1 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fuse
|
||||||
|
, makeWrapper
|
||||||
, openssl
|
, openssl
|
||||||
, pandoc
|
, pandoc
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -22,6 +24,7 @@ buildGoModule rec {
|
||||||
vendorSha256 = "sha256-Q/oBT5xdLpgQCIk7KES6c8+BaCQVUIwCwVufl4oTFRs=";
|
vendorSha256 = "sha256-Q/oBT5xdLpgQCIk7KES6c8+BaCQVUIwCwVufl4oTFRs=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
pkg-config
|
pkg-config
|
||||||
pandoc
|
pandoc
|
||||||
];
|
];
|
||||||
|
@ -48,6 +51,12 @@ buildGoModule rec {
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/gocryptfs \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ fuse ]}
|
||||||
|
ln -s $out/bin/gocryptfs $out/bin/mount.fuse.gocryptfs
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Encrypted overlay filesystem written in Go";
|
description = "Encrypted overlay filesystem written in Go";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
Loading…
Reference in a new issue