2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
}:
|
2020-10-19 00:13:06 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2020-10-19 00:13:06 +00:00
|
|
|
pname = "git-vanity-hash";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.0.0";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prasmussen";
|
|
|
|
repo = "git-vanity-hash";
|
2024-05-15 15:35:15 +00:00
|
|
|
# v1.0.0 + build fix
|
|
|
|
rev = "a80e7725ac6d0b7e6807cd7315cfdc7eaf0584f6";
|
|
|
|
hash = "sha256-1z4jbtzUB3SH79dDXAITf7Vup1YZdTLHBieSrhrvSXc=";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-+SQ0HpURBjnnwH1Ue7IUReOtI4LxVPK9AGSAihs0qsc=";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/git-vanity-hash
|
|
|
|
cp README.md $out/share/doc/git-vanity-hash
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
homepage = "https://github.com/prasmussen/git-vanity-hash";
|
|
|
|
description = "Tool for creating commit hashes with a specific prefix";
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
maintainers = [ maintainers.kaction ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "git-vanity-hash";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
}
|