2021-04-19 03:05:28 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "passphrase2pgp";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "1.2.1";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skeeto";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-Ik/W3gGvrOyUvYgMYqT8FIFoxp62BXd2GpV14pYXEuY=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
vendorSha256 = "sha256-2H9YRVCaari47ppSkcQYg/P4Dzb4k5PLjKAtfp39NR8=";
|
2021-03-09 03:18:52 +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 ];
|
|
|
|
};
|
|
|
|
}
|