2021-04-19 03:05:28 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "passphrase2pgp";
|
2021-04-19 03:05:28 +00:00
|
|
|
version = "1.2.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skeeto";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-19 03:05:28 +00:00
|
|
|
hash = "sha256-VNOoYYnHsSgiSbVxlBwYUq0JsLa4BwZQSvMVSiyB6rg=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
vendorSha256 = "sha256-7q5nwkj4TP7VgHmV9YBbCB11yTPL7tK4gD+uN4Vw3Cs=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|