2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, gpgme }:
|
2015-10-02 20:39:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nasty";
|
2015-10-02 20:39:16 +01:00
|
|
|
version = "0.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.vanheusden.com/nasty/${pname}-${version}.tgz";
|
2015-10-02 20:39:16 +01:00
|
|
|
sha256 = "1dznlxr728k1pgy1kwmlm7ivyl3j3rlvkmq34qpwbwbj8rnja1vn";
|
|
|
|
};
|
|
|
|
|
2016-07-19 00:47:33 +01:00
|
|
|
# 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";
|
|
|
|
|
2015-10-02 20:39:16 +01:00
|
|
|
buildInputs = [ gpgme ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp nasty $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-10-02 20:39:16 +01:00
|
|
|
description = "Recover the passphrase of your PGP or GPG-key";
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.vanheusden.com/nasty/";
|
2015-10-02 20:39:16 +01:00
|
|
|
license = licenses.gpl2;
|
2015-10-11 21:00:47 +01:00
|
|
|
maintainers = with maintainers; [ davidak ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.unix;
|
2015-10-02 20:39:16 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|