diff options
author | Arthur Gautier <arthur.gautier@arista.com> | 2023-11-10 12:08:40 -0800 |
---|---|---|
committer | Arthur Gautier <arthur.gautier@arista.com> | 2023-11-13 09:12:08 -0800 |
commit | ba12e9a8f236fb74c81220895c8c92a633a7a5e0 (patch) | |
tree | 2ae0d23eb9fef8d9ba198d1532b46be28c87bf37 /pkgs/by-name/sh | |
parent | 6f314053897165a8c629484836a45d1de1a0e965 (diff) |
sha2wordlist: init at unstable-2023-02-20
Diffstat (limited to 'pkgs/by-name/sh')
-rw-r--r-- | pkgs/by-name/sh/sha2wordlist/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/sh/sha2wordlist/package.nix b/pkgs/by-name/sh/sha2wordlist/package.nix new file mode 100644 index 0000000000000..c3a6710efb176 --- /dev/null +++ b/pkgs/by-name/sh/sha2wordlist/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, libbsd +}: + +stdenv.mkDerivation { + pname = "sha2wordlist"; + version = "unstable-2023-02-20"; + + src = fetchFromGitHub { + owner = "kirei"; + repo = "sha2wordlist"; + rev = "2017b7ac786cfb5ad7f35f3f9068333b426d65f7"; + hash = "sha256-A5KIXvwllzUcUm52lhw0QDjhEkCVTcbLQGFZWmHrFpU="; + }; + + postPatch = '' + substituteInPlace Makefile \ + --replace "gcc" "$CC" + ''; + + buildInputs = [ + libbsd + ]; + + installPhase = '' + mkdir -p $out/bin + install -m 755 sha2wordlist $out/bin + ''; + + meta = with lib; { + description = "Display SHA-256 as PGP words"; + homepage = "https://github.com/kirei/sha2wordlist"; + maintainers = with maintainers; [ baloo ]; + license = [ licenses.bsd2 ]; + platforms = platforms.all; + mainProgram = "sha2wordlist"; + }; +} |