aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/filesystems/gocryptfs
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/filesystems/gocryptfs')
-rw-r--r--nixpkgs/pkgs/tools/filesystems/gocryptfs/default.nix43
-rw-r--r--nixpkgs/pkgs/tools/filesystems/gocryptfs/deps.nix75
2 files changed, 22 insertions, 96 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;
};
}
diff --git a/nixpkgs/pkgs/tools/filesystems/gocryptfs/deps.nix b/nixpkgs/pkgs/tools/filesystems/gocryptfs/deps.nix
deleted file mode 100644
index cebad12327e..00000000000
--- a/nixpkgs/pkgs/tools/filesystems/gocryptfs/deps.nix
+++ /dev/null
@@ -1,75 +0,0 @@
-# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
-[
- {
- goPackagePath = "github.com/hanwen/go-fuse";
- fetch = {
- type = "git";
- url = "https://github.com/hanwen/go-fuse";
- rev = "161a164844568ebf4bfaa68c90ba3a9f2914dda4";
- sha256 = "1r0rs76k9zg60i02jlcqxi7m4ivla1xwv3ijwav7pfbyyr1yqhsx";
- };
- }
- {
- goPackagePath = "github.com/jacobsa/crypto";
- fetch = {
- type = "git";
- url = "https://github.com/jacobsa/crypto";
- rev = "9f44e2d11115452dad8f404f029574422855f46a";
- sha256 = "18c3cx8izxdajq22zdq0n19j9d2l6iickd3mz39j5h96kw7l5qmy";
- };
- }
- {
- goPackagePath = "github.com/pkg/xattr";
- fetch = {
- type = "git";
- url = "https://github.com/pkg/xattr";
- rev = "7782c2d6871d6e659e1563dc19c86b845264a6fc";
- sha256 = "1j3z5b9nwgkxia925rkiq8n5avhf4zhmsdbpn2s3xb16a2w66prd";
- };
- }
- {
- goPackagePath = "github.com/rfjakob/eme";
- fetch = {
- type = "git";
- url = "https://github.com/rfjakob/eme";
- rev = "2222dbd4ba467ab3fc7e8af41562fcfe69c0d770";
- sha256 = "0c227ly3z8pqaqg22lpd8nzgqrfsbjx5gi9rp9ks1cmd11dv2gl9";
- };
- }
- {
- goPackagePath = "github.com/sabhiram/go-gitignore";
- fetch = {
- type = "git";
- url = "https://github.com/sabhiram/go-gitignore";
- rev = "d3107576ba9425fc1c85f4b3569c4631b805a02e";
- sha256 = "1rdwyxgcsiwgmlqnc3k6h300mzlvjc3j21np4yh1h476wc8dvl0l";
- };
- }
- {
- goPackagePath = "golang.org/x/crypto";
- fetch = {
- type = "git";
- url = "https://go.googlesource.com/crypto";
- rev = "a1f597ede03a7bef967a422b5b3a5bd08805a01e";
- sha256 = "0yiczljll72ip2vkxgd6052rhpaba37a68vf6si3v8s8s3g870lc";
- };
- }
- {
- goPackagePath = "golang.org/x/sync";
- fetch = {
- type = "git";
- url = "https://go.googlesource.com/sync";
- rev = "e225da77a7e68af35c70ccbf71af2b83e6acac3c";
- sha256 = "0bh3583smcfw6jw3w6lp0za93rz7hpxfdz8vhxng75b7a6vdlw4p";
- };
- }
- {
- goPackagePath = "golang.org/x/sys";
- fetch = {
- type = "git";
- url = "https://go.googlesource.com/sys";
- rev = "61b9204099cb1bebc803c9ffb9b2d3acd9d457d9";
- sha256 = "110carnw1rxk9awbcdbg5is0zl28vynm649y7rza36pg1vlv8rrh";
- };
- }
-]