28 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
29 # For ScreenCaptureKit.h, see https://github.com/NixOS/nixpkgs/pull/358760#discussion_r1858327365
33 src = fetchFromGitHub {
37 hash = "sha256-GL0vnrNz9vcdybubYIjiK0tDH3L4lNWNo+rAAWv7d8o=";
40 vendorHash = "sha256-dDy7eQe/JtAsB+cPONiqUwcCsbisCLzY/5YQaH9w2Yg=";
42 subPackages = [ "." ];
47 "-X main.version=${version}"
48 "-X main.commit=${src.rev}"
51 wrapperPath = lib.makeBinPath (
57 ++ lib.optional stdenv.hostPlatform.isLinux wl-clipboard
62 installManPage gopass.1
63 installShellCompletion --cmd gopass \
64 --zsh zsh.completion \
65 --bash bash.completion \
66 --fish fish.completion
68 + lib.optionalString passAlias ''
69 ln -s $out/bin/gopass $out/bin/pass
73 wrapProgram $out/bin/gopass \
74 --prefix PATH : "${wrapperPath}" \
75 --set GOPASS_NO_REMINDER true
80 tests.version = testers.testVersion {
84 updateScript = nix-update-script { };
88 description = "Slightly more awesome Standard Unix Password Manager for Teams. Written in Go";
89 homepage = "https://www.gopass.pw/";
90 license = licenses.mit;
91 maintainers = with maintainers; [
95 changelog = "https://github.com/gopasspw/gopass/blob/v${version}/CHANGELOG.md";
98 gopass is a rewrite of the pass password manager in Go with the aim of
99 making it cross-platform and adding additional features. Our target
100 audience are professional developers and sysadmins (and especially teams
101 of those) who are well versed with a command line interface. One explicit
102 goal for this project is to make it more approachable to non-technical
103 users. We go by the UNIX philosophy and try to do one thing and do it
104 well, providing a stellar user experience and a sane, simple interface.
106 mainProgram = "gopass";