From eb283a9a3e37fd9910b8d6ccaf00974f50ff68a8 Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> Date: Sun, 31 Oct 2021 08:31:59 +0200 Subject: [PATCH 1/2] rbw: 1.4.0 -> 1.4.1 --- pkgs/tools/security/rbw/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/rbw/default.nix b/pkgs/tools/security/rbw/default.nix index c799c9b2a871..0b291afd7eff 100644 --- a/pkgs/tools/security/rbw/default.nix +++ b/pkgs/tools/security/rbw/default.nix @@ -26,15 +26,15 @@ rustPlatform.buildRustPackage rec { pname = "rbw"; - version = "1.4.0"; + version = "1.4.1"; src = fetchCrate { inherit version; crateName = pname; - sha256 = "sha256-6O33rn/MTo7Dymwh57xQJ5v7n4yNSoICyR9gRwF4AH4="; + sha256 = "sha256-RNdxAp3Q/xNrK1XcKZPMfuqxWzDtdhwT+nqG25SjJhI="; }; - cargoSha256 = "sha256-BrjKUovVV6BDZXtILVC0qaAF5xzE3715u9w9OYIJFbk="; + cargoSha256 = "sha256-I0KwHCmfYxgSF5IMHiPooaf2bypd6eYCOPSB+qnEBJY="; nativeBuildInputs = [ pkg-config From 130706b23ce9eb8b0a6992ab6bb98c72a9724dda Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> Date: Sun, 31 Oct 2021 09:01:49 +0200 Subject: [PATCH 2/2] rbw: Add git-credential-helper --- pkgs/tools/security/rbw/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/security/rbw/default.nix b/pkgs/tools/security/rbw/default.nix index 0b291afd7eff..3a8af973cf7a 100644 --- a/pkgs/tools/security/rbw/default.nix +++ b/pkgs/tools/security/rbw/default.nix @@ -22,6 +22,9 @@ # pass-import , withPass ? false , pass + + # git-credential-helper +, withGitCredential ? false }: rustPlatform.buildRustPackage rec { @@ -58,6 +61,10 @@ rustPlatform.buildRustPackage rec { patchShebangs bin/pass-import substituteInPlace bin/pass-import \ --replace pass ${pass}/bin/pass + '' + lib.optionalString withGitCredential '' + patchShebangs bin/git-credential-rbw + substituteInPlace bin/git-credential-rbw \ + --replace rbw $out/bin/rbw ''; preConfigure = '' @@ -76,6 +83,8 @@ rustPlatform.buildRustPackage rec { cp bin/rbw-rofi $out/bin '' + lib.optionalString withPass '' cp bin/pass-import $out/bin + '' + lib.optionalString withGitCredential '' + cp bin/git-credential-rbw $out/bin ''; meta = with lib; {