prs: 0.2.7 -> 0.2.8

This commit is contained in:
Robert Schütz 2021-04-23 08:51:57 +02:00
parent 5bc2962319
commit c890c058da

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitLab
, installShellFiles
, pkg-config
, python3
, dbus
@ -12,16 +13,16 @@
rustPlatform.buildRustPackage rec {
pname = "prs";
version = "0.2.7";
version = "0.2.8";
src = fetchFromGitLab {
owner = "timvisee";
repo = "prs";
rev = "v${version}";
sha256 = "sha256-1Jrgf5UW6k0x3q6kQIB6Q7moOhConEnUU9r+21W5Uu8=";
sha256 = "sha256-TPgS3gtSfCAtQyQCZ0HadxvmX6+dP/3SE/WumzzYUAw=";
};
cargoSha256 = "sha256-N3pLW/OGeurrl+AlwdfbZ3T7WzEOAuyUMdIR164Xp7k=";
cargoSha256 = "sha256-djKtmQHBVXEfn91avJCsVJwEJIE3xL1umvoLAIyXSrw=";
postPatch = ''
# The GPGME backend is recommended
@ -31,10 +32,16 @@ rustPlatform.buildRustPackage rec {
done
'';
nativeBuildInputs = [ gpgme pkg-config python3 ];
nativeBuildInputs = [ gpgme installShellFiles pkg-config python3 ];
buildInputs = [ dbus glib gpgme gtk3 libxcb ];
postInstall = ''
for shell in bash fish zsh; do
installShellCompletion --cmd prs --$shell <($out/bin/prs internal completions $shell --stdout)
done
'';
meta = with lib; {
description = "Secure, fast & convenient password manager CLI using GPG and git to sync";
homepage = "https://gitlab.com/timvisee/prs";