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

gitprompt-rs: init at 0.3.0

authored by

Nick Cao and committed by
GitHub
7fe2df23 3476d228

+35
+6
maintainers/maintainer-list.nix
··· 10418 10418 githubId = 6052922; 10419 10419 name = "Kirill Struokov"; 10420 10420 }; 10421 + novenary = { 10422 + email = "streetwalkermc@gmail.com"; 10423 + github = "9ary"; 10424 + githubId = 1155030; 10425 + name = "novenary"; 10426 + }; 10421 10427 np = { 10422 10428 email = "np.nix@nicolaspouillard.fr"; 10423 10429 github = "np";
+27
pkgs/applications/version-management/gitprompt-rs/default.nix
··· 1 + { lib, fetchFromGitHub, rustPlatform, git }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "gitprompt-rs"; 5 + version = "0.3.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "9ary"; 9 + repo = pname; 10 + rev = version; 11 + sha256 = "00xxz7awk01981daabp8m3kwq127y733ynijiwqgs8xvn4nkg8h6"; 12 + }; 13 + 14 + cargoSha256 = "0avs833vb6q1avjbfygm55s83iy942xgqsx6qdzksry44n35s418"; 15 + 16 + postPatch = '' 17 + substituteInPlace src/main.rs \ 18 + --replace 'Command::new("git")' 'Command::new("${git}/bin/git")' 19 + ''; 20 + 21 + meta = with lib; { 22 + description = "Simple Git prompt"; 23 + homepage = "https://github.com/9ary/gitprompt-rs"; 24 + license = with licenses; [ mpl20 ]; 25 + maintainers = with maintainers; [ novenary ]; 26 + }; 27 + }
+2
pkgs/top-level/all-packages.nix
··· 1881 1881 1882 1882 gitnuro = callPackage ../applications/version-management/gitnuro { }; 1883 1883 1884 + gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { }; 1885 + 1884 1886 gitsign = callPackage ../applications/version-management/gitsign { }; 1885 1887 1886 1888 gitstats = callPackage ../applications/version-management/gitstats { };