2021-04-19 00:19:40 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-03-05 00:00:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "passphrase2pgp";
|
2022-09-24 18:55:04 +00:00
|
|
|
version = "1.2.1";
|
2021-03-05 00:00:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skeeto";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-24 18:55:04 +00:00
|
|
|
hash = "sha256-Ik/W3gGvrOyUvYgMYqT8FIFoxp62BXd2GpV14pYXEuY=";
|
2021-03-05 00:00:00 +00:00
|
|
|
};
|
|
|
|
|
2022-09-24 18:55:04 +00:00
|
|
|
vendorSha256 = "sha256-2H9YRVCaari47ppSkcQYg/P4Dzb4k5PLjKAtfp39NR8=";
|
2021-03-05 00:00:00 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/$name
|
|
|
|
cp README.md $out/share/doc/$name
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Predictable, passphrase-based PGP key generator";
|
|
|
|
homepage = "https://github.com/skeeto/passphrase2pgp";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ kaction ];
|
|
|
|
};
|
|
|
|
}
|