Merge pull request #212151 from 9ary/gitprompt-rs

gitprompt-rs: init at 0.3.0
This commit is contained in:
Nick Cao
2023-01-23 15:23:31 +08:00
committed by GitHub
3 changed files with 35 additions and 0 deletions
+6
View File
@@ -10418,6 +10418,12 @@
githubId = 6052922;
name = "Kirill Struokov";
};
novenary = {
email = "streetwalkermc@gmail.com";
github = "9ary";
githubId = 1155030;
name = "novenary";
};
np = {
email = "np.nix@nicolaspouillard.fr";
github = "np";
@@ -0,0 +1,27 @@
{ lib, fetchFromGitHub, rustPlatform, git }:
rustPlatform.buildRustPackage rec {
pname = "gitprompt-rs";
version = "0.3.0";
src = fetchFromGitHub {
owner = "9ary";
repo = pname;
rev = version;
sha256 = "00xxz7awk01981daabp8m3kwq127y733ynijiwqgs8xvn4nkg8h6";
};
cargoSha256 = "0avs833vb6q1avjbfygm55s83iy942xgqsx6qdzksry44n35s418";
postPatch = ''
substituteInPlace src/main.rs \
--replace 'Command::new("git")' 'Command::new("${git}/bin/git")'
'';
meta = with lib; {
description = "Simple Git prompt";
homepage = "https://github.com/9ary/gitprompt-rs";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ novenary ];
};
}
+2
View File
@@ -1881,6 +1881,8 @@ with pkgs;
gitnuro = callPackage ../applications/version-management/gitnuro { };
gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { };
gitsign = callPackage ../applications/version-management/gitsign { };
gitstats = callPackage ../applications/version-management/gitstats { };