forked from mirrors/nixpkgs
commit
2a773b1506
31
pkgs/tools/security/safe/default.nix
Normal file
31
pkgs/tools/security/safe/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv
|
||||
, buildGoPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
with builtins;
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "safe";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "starkandwayne";
|
||||
repo = "safe";
|
||||
rev = "v${version}";
|
||||
sha256 = "12gzxrnyl890h79z9yx23m1wwgy8ahm74q4qwi8n2nh7ydq6mn2d";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/starkandwayne/safe";
|
||||
|
||||
preBuild = ''
|
||||
buildFlagsArray+=("-ldflags" "-X main.Version=${version}")
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Vault CLI";
|
||||
homepage = "https://github.com/starkandwayne/safe";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eonpatapon ];
|
||||
};
|
||||
}
|
|
@ -6269,6 +6269,8 @@ in
|
|||
|
||||
safecopy = callPackage ../tools/system/safecopy { };
|
||||
|
||||
safe = callPackage ../tools/security/safe { };
|
||||
|
||||
safe-rm = callPackage ../tools/system/safe-rm { };
|
||||
|
||||
safeeyes = callPackage ../applications/misc/safeeyes { };
|
||||
|
|
Loading…
Reference in a new issue