diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-11-15T14·27+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-11-15T14·27+0100 |
commit | d79b7f45e70ca5250a5421dd4dab330dda17ad36 (patch) | |
tree | c7883d32b8ff62c571f82f28660bb6e431c170dc /pkgs | |
parent | 2ba26218ac4a8da47e7e1b6ee9781e60d36d509b (diff) |
feat(pkgs): Install gopass-bin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/gopass-bin.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/gopass-bin.nix b/pkgs/gopass-bin.nix new file mode 100644 index 000000000000..30705726e86a --- /dev/null +++ b/pkgs/gopass-bin.nix @@ -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"; + }; +} |