2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, gpgme }:
|
2015-10-03 01:38:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gpgstats";
|
2015-10-03 01:38:15 +02:00
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.vanheusden.com/gpgstats/${pname}-${version}.tgz";
|
2015-10-03 01:38:15 +02:00
|
|
|
sha256 = "1n3njqhjwgfllcxs0xmk89dzgirrpfpfzkj71kqyvq97gc1wbcxy";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses gpgme ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gpgstats $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.is64bit)
|
2019-10-30 03:23:29 +01:00
|
|
|
"-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1";
|
2016-03-09 23:15:41 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-10-03 01:38:15 +02:00
|
|
|
description = "Calculates statistics on the keys in your gpg key-ring";
|
|
|
|
longDescription = ''
|
|
|
|
GPGstats calculates statistics on the keys in your key-ring.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.vanheusden.com/gpgstats/";
|
2015-10-03 01:38:15 +02:00
|
|
|
license = licenses.gpl2;
|
2015-10-11 22:09:23 +02:00
|
|
|
maintainers = with maintainers; [ davidak ];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.unix;
|
2015-10-03 01:38:15 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|