aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix43
1 files changed, 22 insertions, 21 deletions
diff --git a/nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix b/nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix
index 70a0aff118d..bed971229cd 100644
--- a/nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix
+++ b/nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix
@@ -1,42 +1,43 @@
-# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
-{ stdenv, buildGoPackage, fetchFromGitHub, openssl, pandoc, pkgconfig }:
-
-let
- goFuseVersion = with stdenv.lib; substring 0 7 (head (filter (
- d: d.goPackagePath == "github.com/hanwen/go-fuse"
- ) (import ./deps.nix))).fetch.rev;
-in
-buildGoPackage rec {
+{ stdenv
+, buildGoModule
+, fetchFromGitHub
+, openssl
+, pandoc
+, pkg-config
+}:
+
+buildGoModule rec {
pname = "gocryptfs";
- version = "1.7.1";
-
- goPackagePath = "github.com/rfjakob/gocryptfs";
-
- nativeBuildInputs = [ pandoc pkgconfig ];
- buildInputs = [ openssl ];
+ version = "1.8.0";
src = fetchFromGitHub {
owner = "rfjakob";
repo = pname;
rev = "v${version}";
- sha256 = "1zhzhvjhvi6xzib985bsnj9yzp4zsnm91m1679nbab6vm3kanq06";
+ sha256 = "1acalwrr5xqhpqca3gypj0s68w6vpckxmg5z5gfgh8wx6nqx4aw9";
};
- postPatch = "rm -r tests";
+ runVend = true;
+ vendorSha256 = "0z3y51sgr1rmr23jpc5h5d5lw14p3qzv48rc7zj7qa4rd5cfhsgi";
+
+ nativeBuildInputs = [ pandoc pkg-config ];
+ buildInputs = [ openssl ];
buildFlagsArray = ''
-ldflags=
-X main.GitVersion=${version}
- -X main.GitVersionFuse=${goFuseVersion}
+ -X main.GitVersionFuse=[vendored]
+ -X main.BuildDate=unknown
'';
- goDeps = ./deps.nix;
+ subPackages = [ "." "gocryptfs-xray" "contrib/statfs" ];
postBuild = ''
- pushd go/src/github.com/rfjakob/gocryptfs/Documentation/
+ pushd 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
+ pandoc MANPAGE-STATFS.md -s -t man -o $out/share/man/man1/statfs.1
popd
'';
@@ -44,7 +45,7 @@ buildGoPackage rec {
description = "Encrypted overlay filesystem written in Go";
license = licenses.mit;
homepage = "https://nuetzlich.net/gocryptfs/";
- maintainers = with maintainers; [ flokli offline ];
+ maintainers = with maintainers; [ flokli offline prusnak ];
platforms = platforms.unix;
};
}