-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sha2wordlist: init at unstable-2023-02-20
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
}; | ||
} |