2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2020-08-17 11:04:03 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-vanity-hash";
|
2023-08-15 10:48:04 +00:00
|
|
|
version = "1.0.0";
|
2020-08-17 11:04:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prasmussen";
|
|
|
|
repo = "git-vanity-hash";
|
2023-08-15 10:48:04 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-jD8cSFXf9UNBZ9d8JTnuwhs6nPHY/xGd5RyqF+mQOlo=";
|
2020-08-17 11:04:03 +00:00
|
|
|
};
|
|
|
|
|
2023-08-15 10:48:04 +00:00
|
|
|
cargoHash = "sha256-8oW6gRtdQdmSmdwKlcU2EhHsyhk9hFhKl7RtsYwC7Ps=";
|
2020-08-17 11:04:03 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/git-vanity-hash
|
|
|
|
cp README.md $out/share/doc/git-vanity-hash
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-17 11:04:03 +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 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "git-vanity-hash";
|
2020-08-17 11:04:03 +00:00
|
|
|
};
|
|
|
|
}
|