forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
61 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.