Merge pull request #95717 from KAction/git-vanity-hash

git-vanity-hash: init at 2020-02-26
This commit is contained in:
Ryan Mulligan 2020-10-18 10:56:51 -07:00 committed by GitHub
commit 396f3407a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -239,6 +239,8 @@ let
transcrypt = callPackage ./transcrypt { }; transcrypt = callPackage ./transcrypt { };
git-vanity-hash = callPackage ./git-vanity-hash { };
ydiff = pkgs.python3.pkgs.toPythonApplication pkgs.python3.pkgs.ydiff; ydiff = pkgs.python3.pkgs.toPythonApplication pkgs.python3.pkgs.ydiff;
} // lib.optionalAttrs (config.allowAliases or true) (with self; { } // lib.optionalAttrs (config.allowAliases or true) (with self; {

View File

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "git-vanity-hash";
version = "2020-02-26-unstable";
src = fetchFromGitHub {
owner = "prasmussen";
repo = "git-vanity-hash";
rev = "000004122124005af8d118a3f379bfc6ecc1e7c7";
sha256 = "1wf342zawbphlzvji0yba0qg4f6v67h81nhxqcsir132jv397ma7";
};
cargoSha256 = "0mbdis1kxmgj3wlgznr9bqf5yv0jwlj2f63gr5c99ja0ijccp99h";
postInstall = ''
mkdir -p $out/share/doc/git-vanity-hash
cp README.md $out/share/doc/git-vanity-hash
'';
meta = with stdenv.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 ];
};
}