2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, gpgme }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nasty";
|
|
|
|
version = "0.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.vanheusden.com/nasty/${pname}-${version}.tgz";
|
|
|
|
sha256 = "1dznlxr728k1pgy1kwmlm7ivyl3j3rlvkmq34qpwbwbj8rnja1vn";
|
|
|
|
};
|
|
|
|
|
|
|
|
# does not apply cleanly with patchPhase/fetchpatch
|
|
|
|
# https://sources.debian.net/src/nasty/0.6-3/debian/patches/02_add_largefile_support.patch
|
|
|
|
CFLAGS = "-D_FILE_OFFSET_BITS=64";
|
|
|
|
|
|
|
|
buildInputs = [ gpgme ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp nasty $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Recover the passphrase of your PGP or GPG-key";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nasty";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Nasty is a program that helps you to recover the passphrase of your PGP or GPG-key
|
|
|
|
in case you forget or lost it. It is mostly a proof-of-concept: with a different implementation
|
|
|
|
this program could be at least 100x faster.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.vanheusden.com/nasty/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ davidak ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|