Merge pull request #311714 from isabelroses/gitprompt-rs/by-name

gitprompt-rs: move to by-name
This commit is contained in:
Aleksana 2024-05-16 22:40:19 +08:00 committed by GitHub
commit caf9004456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View File

@ -4,13 +4,16 @@
rustPlatform,
git,
}:
rustPlatform.buildRustPackage rec {
pname = "gitprompt-rs";
let
version = "0.3.0";
in
rustPlatform.buildRustPackage {
pname = "gitprompt-rs";
inherit version;
src = fetchFromGitHub {
owner = "9ary";
repo = pname;
repo = "gitprompt-rs";
rev = version;
hash = "sha256-BqI3LbG7I/0wjzJaP8bxRwTM56joLqVaQCmAydX5vQM=";
};
@ -22,11 +25,14 @@ rustPlatform.buildRustPackage rec {
--replace 'Command::new("git")' 'Command::new("${git}/bin/git")'
'';
meta = with lib; {
meta = {
description = "Simple Git prompt";
homepage = "https://github.com/9ary/gitprompt-rs";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ isabelroses cafkafk ];
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
isabelroses
cafkafk
];
mainProgram = "gitprompt-rs";
};
}

View File

@ -2491,8 +2491,6 @@ with pkgs;
gitnr = callPackage ../applications/version-management/gitnr { };
gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { };
gitsign = callPackage ../applications/version-management/gitsign { };
gitstats = callPackage ../applications/version-management/gitstats { };