2018-07-05 22:18:36 +00:00
|
|
|
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
|
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, openssl, pandoc, pkgconfig }:
|
2016-11-17 13:15:47 +00:00
|
|
|
|
|
|
|
let
|
2018-07-05 22:18:36 +00:00
|
|
|
goFuseVersion = with stdenv.lib; substring 0 7 (head (filter (
|
2016-11-17 13:15:47 +00:00
|
|
|
d: d.goPackagePath == "github.com/hanwen/go-fuse"
|
|
|
|
) (import ./deps.nix))).fetch.rev;
|
2018-07-05 22:18:36 +00:00
|
|
|
in
|
|
|
|
buildGoPackage rec {
|
2019-07-11 05:29:36 +00:00
|
|
|
pname = "gocryptfs";
|
2019-11-01 21:11:27 +00:00
|
|
|
version = "1.7.1";
|
2016-11-17 13:15:47 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/rfjakob/gocryptfs";
|
|
|
|
|
2018-07-05 22:18:36 +00:00
|
|
|
nativeBuildInputs = [ pandoc pkgconfig ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2016-11-17 13:15:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rfjakob";
|
2019-07-11 05:29:36 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-11-01 21:11:27 +00:00
|
|
|
sha256 = "1zhzhvjhvi6xzib985bsnj9yzp4zsnm91m1679nbab6vm3kanq06";
|
2016-11-17 13:15:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "rm -r tests";
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2018-07-05 22:18:36 +00:00
|
|
|
-X main.GitVersion=${version}
|
2016-11-17 13:15:47 +00:00
|
|
|
-X main.GitVersionFuse=${goFuseVersion}
|
|
|
|
'';
|
|
|
|
|
2018-07-05 22:18:36 +00:00
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
pushd go/src/github.com/rfjakob/gocryptfs/Documentation/
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
pandoc MANPAGE.md -s -t man -o $out/share/man/man1/gocryptfs.1
|
|
|
|
pandoc MANPAGE-XRAY.md -s -t man -o $out/share/man/man1/gocryptfs-xray.1
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-11-17 13:15:47 +00:00
|
|
|
description = "Encrypted overlay filesystem written in Go";
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://nuetzlich.net/gocryptfs/";
|
2018-07-05 22:18:36 +00:00
|
|
|
maintainers = with maintainers; [ flokli offline ];
|
|
|
|
platforms = platforms.unix;
|
2016-11-17 13:15:47 +00:00
|
|
|
};
|
|
|
|
}
|