@@ -0,0 +1,27 @@
1+{ lib, pandoc, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "passphrase2pgp";
5+ version = "1.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "skeeto";
9+ repo = pname;
10+ rev = "v${version}";
11+ hash = "sha256-Nje77tn55CKRU6igEA/6IquDhXVVQAdiez6nmN49di4";
12+ };
13+
14+ vendorSha256 = "sha256-7q5nwkj4TP7VgHmV9YBbCB11yTPL7tK4gD+uN4Vw3Cs";
15+
16+ postInstall = ''
17+ mkdir -p $out/share/doc/$name
18+ cp README.md $out/share/doc/$name
19+ '';
20+
21+ meta = with lib; {
22+ description = "Predictable, passphrase-based PGP key generator";
23+ homepage = "https://github.com/skeeto/passphrase2pgp";
24+ license = licenses.unlicense;
25+ maintainers = with maintainers; [ kaction ];
26+ };
27+}