2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
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";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-jD8cSFXf9UNBZ9d8JTnuwhs6nPHY/xGd5RyqF+mQOlo=";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-8oW6gRtdQdmSmdwKlcU2EhHsyhk9hFhKl7RtsYwC7Ps=";
|
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
|
|
|
};
|
|
|
|
}
|