gitprompt-rs: move to by-name

This commit is contained in:
isabel
2024-05-15 14:11:00 +01:00
parent c4ce542c77
commit cd833bc84e
2 changed files with 12 additions and 8 deletions
@@ -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";
};
}
-2
View File
@@ -2495,8 +2495,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 { };