1 { lib, buildGoModule, fetchFromGitHub, nix-update-script }:
4 pname = "passphrase2pgp";
7 src = fetchFromGitHub {
11 hash = "sha256-it1XYzLiteL0oq4SZp5E3s6oSkFKi3ZY0Lt+P0gmNag=";
14 vendorHash = "sha256-2H9YRVCaari47ppSkcQYg/P4Dzb4k5PLjKAtfp39NR8=";
17 mkdir -p $out/share/doc/$name
18 cp README.md $out/share/doc/$name
22 output=$(echo NONE | ../go/bin/passphrase2pgp -a -u NONE -i /dev/stdin | sha256sum)
23 if [[ "$output" != "23f59f4346f35e2feca6ef703ea64973524dec365ea672f23e7afe79be1049dd -" ]] ; then
24 echo "passphrase2pgp introduced backward-incompatible change"
29 passthru.updateScript = nix-update-script { };
32 description = "Predictable, passphrase-based PGP key generator";
33 mainProgram = "passphrase2pgp";
34 homepage = "https://github.com/skeeto/passphrase2pgp";
35 license = licenses.unlicense;
36 maintainers = with maintainers; [ kaction ];