mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
60624a4625
also fixes i686 build as a side-effect
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ stdenv, fetchurl, gpgme }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "nasty-${version}";
|
|
version = "0.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.vanheusden.com/nasty/${name}.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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
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.
|
|
'';
|
|
homepage = http://www.vanheusden.com/nasty/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ davidak ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|