2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2020-08-17 13:04:03 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-vanity-hash";
|
|
|
|
version = "2020-02-26-unstable";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prasmussen";
|
|
|
|
repo = "git-vanity-hash";
|
|
|
|
rev = "000004122124005af8d118a3f379bfc6ecc1e7c7";
|
|
|
|
sha256 = "1wf342zawbphlzvji0yba0qg4f6v67h81nhxqcsir132jv397ma7";
|
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "1frdw9bs7y6ch5rrbsgvhrs0wxw4hbwm2n3crslp12w55m7k39fc";
|
2020-08-17 13:04:03 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/git-vanity-hash
|
|
|
|
cp README.md $out/share/doc/git-vanity-hash
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-17 13:04:03 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|