mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
gitprompt-rs: init at 0.3.0
This commit is contained in:
parent
38bc80cb5a
commit
ce563f6105
@ -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 ];
|
||||
};
|
||||
}
|
@ -1882,6 +1882,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user