uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
69
pkgs/tools/filesystems/gocryptfs/default.nix
Normal file
69
pkgs/tools/filesystems/gocryptfs/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, fuse
|
||||
, makeWrapper
|
||||
, openssl
|
||||
, pandoc
|
||||
, pkg-config
|
||||
, libfido2
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gocryptfs";
|
||||
version = "2.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rfjakob";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-qERtX9UcdMolbffzPiVQlblirzJ5baOmHonJIO8ang0=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-yJ7RYwhArgmGlFmSplrX1hiLkc7FkS1qQCUcRlbnNWQ=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
pkg-config
|
||||
pandoc
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
propagatedBuildInputs = [ libfido2 ];
|
||||
|
||||
ldflags = [
|
||||
"-X main.GitVersion=${version}"
|
||||
"-X main.GitVersionFuse=[vendored]"
|
||||
"-X main.BuildDate=unknown"
|
||||
];
|
||||
|
||||
subPackages = [ "." "gocryptfs-xray" "contrib/statfs" ];
|
||||
|
||||
postBuild = ''
|
||||
pushd Documentation/
|
||||
mkdir -p $out/share/man/man1
|
||||
# taken from Documentation/MANPAGE-render.bash
|
||||
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
|
||||
'';
|
||||
|
||||
# use --suffix here to ensure we don't shadow /run/wrappers/bin/fusermount,
|
||||
# as the setuid wrapper is required to use gocryptfs as non-root on NixOS
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/gocryptfs \
|
||||
--suffix PATH : ${lib.makeBinPath [ fuse ]}
|
||||
ln -s $out/bin/gocryptfs $out/bin/mount.fuse.gocryptfs
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Encrypted overlay filesystem written in Go";
|
||||
license = licenses.mit;
|
||||
homepage = "https://nuetzlich.net/gocryptfs/";
|
||||
maintainers = with maintainers; [ flokli offline prusnak ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue