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
34 lines
832 B
Nix
34 lines
832 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "git-vanity-hash";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prasmussen";
|
|
repo = "git-vanity-hash";
|
|
# v1.0.0 + build fix
|
|
rev = "a80e7725ac6d0b7e6807cd7315cfdc7eaf0584f6";
|
|
hash = "sha256-1z4jbtzUB3SH79dDXAITf7Vup1YZdTLHBieSrhrvSXc=";
|
|
};
|
|
|
|
cargoHash = "sha256-aHqH7SQBIe0oqD3MegWvAR3UvzRBm2X92lP931nVVtA=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/doc/git-vanity-hash
|
|
cp README.md $out/share/doc/git-vanity-hash
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/prasmussen/git-vanity-hash";
|
|
description = "Tool for creating commit hashes with a specific prefix";
|
|
license = [ licenses.mit ];
|
|
maintainers = [ maintainers.kaction ];
|
|
mainProgram = "git-vanity-hash";
|
|
};
|
|
}
|