feat(pkgs): Install gopass-bin
This commit is contained in:
parent
2ba26218ac
commit
d79b7f45e7
2 changed files with 26 additions and 0 deletions
|
@ -76,6 +76,7 @@ in {
|
|||
(import pkgs/pulseaudio-ctl.nix)
|
||||
(import pkgs/stern-bin.nix)
|
||||
(import pkgs/terraform-bin.nix)
|
||||
(import pkgs/gopass-bin.nix { inherit pkgs; })
|
||||
];
|
||||
}
|
||||
|
||||
|
|
25
pkgs/gopass-bin.nix
Normal file
25
pkgs/gopass-bin.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
with pkgs; stdenv.mkDerivation rec {
|
||||
name = "gopass-bin-${version}";
|
||||
version = "1.6.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/justwatchcom/gopass/releases/download/v${version}/gopass-${version}-linux-386.tar.gz";
|
||||
sha256 = "06iif74akcfb8n1h3ggig56a8y854p4dc7dpxpdfy6w9ra514phq";
|
||||
};
|
||||
|
||||
phases = "installPhase";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/fish/completions
|
||||
cp $src/fish.completion $out/share/fish/completions/gopass.fish
|
||||
cp $src/gopass $out/bin/gopass
|
||||
chmod +x $out/bin/gopass
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "password-store like password manager with team functionality";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/justwatchcom/gopass";
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue