nixpkgs/pkgs/applications/version-management/git-vanity-hash/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
775 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform }:
2020-08-17 11:04:03 +00:00
rustPlatform.buildRustPackage rec {
pname = "git-vanity-hash";
version = "1.0.0";
2020-08-17 11:04:03 +00:00
src = fetchFromGitHub {
owner = "prasmussen";
repo = "git-vanity-hash";
rev = "v${version}";
hash = "sha256-jD8cSFXf9UNBZ9d8JTnuwhs6nPHY/xGd5RyqF+mQOlo=";
2020-08-17 11:04:03 +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
'';
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
};
}