Skip to content

Commit

Permalink
gocryptfs: 1.1.1 -> 1.5
Browse files Browse the repository at this point in the history
Bold marked applicable changelog entries:

 - Support extended attributes (xattr) in forward mode<Paste>
 - Add -fsck function
 - Fix several symlink race attacks
 - Use memory pools for buffer handling
 - Parallelize file content encryption
 - Use HKDF to derive separate keys for GCM and EME
  • Loading branch information
flokli committed Jul 5, 2018
1 parent dff0cfc commit 7e579aa
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 28 deletions.
44 changes: 25 additions & 19 deletions pkgs/tools/filesystems/gocryptfs/default.nix
Original file line number Diff line number Diff line change
@@ -1,44 +1,50 @@
# This file was generated by go2nix.
{ stdenv, lib, buildGoPackage, fetchFromGitHub, pkgconfig, openssl }:

with lib;
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
{ stdenv, buildGoPackage, fetchFromGitHub, openssl, pandoc, pkgconfig }:

let
goFuseVersion = substring 0 7 (head (filter (
version = "v1.5";
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 {
in
buildGoPackage rec {
name = "gocryptfs-${version}";
version = "1.1.1";
rev = "v${version}";

goPackagePath = "github.com/rfjakob/gocryptfs";

nativeBuildInputs = [ pandoc pkgconfig ];
buildInputs = [ openssl ];

src = fetchFromGitHub {
inherit rev;
owner = "rfjakob";
repo = "gocryptfs";
sha256 = "0p173x2s0km7a43h6ihir5p19fdlkkb9lc9120k9hccr33iws25z";
rev = version;
sha256 = "0s5smjc7n9088n8a2mv7cy3cx31ci13i1i8fhg1vslc17a15qs2d";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl];

goDeps = ./deps.nix;

postPatch = "rm -r tests";

buildFlagsArray = ''
-ldflags=
-X main.GitVersion=${rev}
-X main.GitVersion=${version}
-X main.GitVersionFuse=${goFuseVersion}
'';

meta = {
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; {
description = "Encrypted overlay filesystem written in Go";
license = licenses.mit;
homepage = https://nuetzlich.net/gocryptfs/;
maintainers = with maintainers; [offline];
platforms = with platforms; linux;
maintainers = with maintainers; [ flokli offline ];
platforms = platforms.unix;
};
}
45 changes: 36 additions & 9 deletions pkgs/tools/filesystems/gocryptfs/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e579aa

Please sign in to comment.