3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/gpgstats/default.nix

34 lines
868 B
Nix
Raw Normal View History

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