18 nativeBuildInputs = [ installShellFiles makeWrapper ];
20 src = fetchFromGitHub {
24 hash = "sha256-3oXdHjW3svGfOEoikEeGm4oU9j+7IBOHw5KH7CCV/uw=";
27 vendorHash = "sha256-GeppWyIWE8kYIqhRf1iHksWksdjbIzy96rRpx+qQ3L0=";
29 subPackages = [ "." ];
31 ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" ];
33 wrapperPath = lib.makeBinPath (
38 ] ++ lib.optional stdenv.hostPlatform.isLinux wl-clipboard
42 installManPage gopass.1
43 installShellCompletion --cmd gopass \
44 --zsh zsh.completion \
45 --bash bash.completion \
46 --fish fish.completion
47 '' + lib.optionalString passAlias ''
48 ln -s $out/bin/gopass $out/bin/pass
52 wrapProgram $out/bin/gopass \
53 --prefix PATH : "${wrapperPath}" \
54 --set GOPASS_NO_REMINDER true
61 description = "Slightly more awesome Standard Unix Password Manager for Teams. Written in Go";
62 homepage = "https://www.gopass.pw/";
63 license = licenses.mit;
64 maintainers = with maintainers; [ rvolosatovs sikmir ];
65 changelog = "https://github.com/gopasspw/gopass/blob/v${version}/CHANGELOG.md";
68 gopass is a rewrite of the pass password manager in Go with the aim of
69 making it cross-platform and adding additional features. Our target
70 audience are professional developers and sysadmins (and especially teams
71 of those) who are well versed with a command line interface. One explicit
72 goal for this project is to make it more approachable to non-technical
73 users. We go by the UNIX philosophy and try to do one thing and do it
74 well, providing a stellar user experience and a sane, simple interface.
76 mainProgram = "gopass";