16 rustPlatform.buildRustPackage rec {
20 src = fetchFromGitLab {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-MvQ0B35NF/AuGHBMa201FkFlU/UX0WXMcBRxTJwpUFw=";
27 cargoHash = "sha256-YDcAjBIdUboOKvGSnGW6b1JVbhQaB3ccXcSmK78M7DI=";
30 # The GPGME backend is recommended
31 for f in "gtk3/Cargo.toml" "cli/Cargo.toml"; do
32 substituteInPlace "$f" --replace \
33 'default = ["backend-gnupg-bin"' 'default = ["backend-gpgme"'
37 nativeBuildInputs = [ gpgme installShellFiles pkg-config python3 ];
48 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
49 for shell in bash fish zsh; do
50 installShellCompletion --cmd prs --$shell <($out/bin/prs internal completions $shell --stdout)
55 description = "Secure, fast & convenient password manager CLI using GPG and git to sync";
56 homepage = "https://gitlab.com/timvisee/prs";
57 changelog = "https://gitlab.com/timvisee/prs/-/blob/v${version}/CHANGELOG.md";
58 license = with licenses; [
60 gpl3Only # everything else
62 maintainers = with maintainers; [ dotlambda ];