Files
nixpkgs/pkgs/by-name/gi/gitprompt-rs/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

39 lines
785 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
git,
}:
let
version = "0.4.1";
in
rustPlatform.buildRustPackage {
pname = "gitprompt-rs";
inherit version;
src = fetchFromGitHub {
owner = "9ary";
repo = "gitprompt-rs";
rev = version;
hash = "sha256-U0ylhgD86lbXvt6jMLaEQdL/zbcbXnfrA72FMEzBkN0=";
};
cargoHash = "sha256-1ihTH/Ft9/8wjRRR0Mt3m8AUYvUEARzdr+R77LjSxzY=";
postPatch = ''
substituteInPlace src/main.rs \
--replace 'Command::new("git")' 'Command::new("${git}/bin/git")'
'';
meta = {
description = "Simple Git prompt";
homepage = "https://github.com/9ary/gitprompt-rs";
license = lib.licenses.bsd0;
maintainers = with lib.maintainers; [
isabelroses
cafkafk
];
mainProgram = "gitprompt-rs";
};
}