1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

Merge pull request #138532 from sephalon/gocryptfs

gocryptfs: support fstab mount
This commit is contained in:
Pavol Rusnak 2021-09-19 23:15:02 +02:00 committed by GitHub
commit e0ce3c683a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;