diff options
author | Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> | 2021-10-31 09:01:49 +0200 |
---|---|---|
committer | Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> | 2021-10-31 09:16:42 +0200 |
commit | 130706b23ce9eb8b0a6992ab6bb98c72a9724dda (patch) | |
tree | 4d36df89ac169741b6860348c7d9b8d8eb572f54 /pkgs/tools/security/rbw | |
parent | eb283a9a3e37fd9910b8d6ccaf00974f50ff68a8 (diff) |
rbw: Add git-credential-helper
Diffstat (limited to 'pkgs/tools/security/rbw')
-rw-r--r-- | pkgs/tools/security/rbw/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/security/rbw/default.nix b/pkgs/tools/security/rbw/default.nix index 0b291afd7eff9..3a8af973cf7ad 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; { |