c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
27 lines
738 B
Nix
27 lines
738 B
Nix
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-vanity-hash";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prasmussen";
|
|
repo = "git-vanity-hash";
|
|
rev = "v${version}";
|
|
hash = "sha256-jD8cSFXf9UNBZ9d8JTnuwhs6nPHY/xGd5RyqF+mQOlo=";
|
|
};
|
|
|
|
cargoHash = "sha256-8oW6gRtdQdmSmdwKlcU2EhHsyhk9hFhKl7RtsYwC7Ps=";
|
|
|
|
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 ];
|
|
};
|
|
}
|