Files
nixpkgs/pkgs/by-name/sh/sha2wordlist/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
827 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 = 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";
};
}