mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 22:10:14 +00:00
42 lines
825 B
Nix
42 lines
825 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libbsd,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "sha2wordlist";
|
|
version = "0-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 = {
|
|
description = "Display SHA-256 as PGP words";
|
|
homepage = "https://github.com/kirei/sha2wordlist";
|
|
maintainers = with lib.maintainers; [ baloo ];
|
|
license = lib.licenses.bsd2;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "sha2wordlist";
|
|
};
|
|
}
|