at 22.05-pre 33 lines 868 B view raw
1{ lib, stdenv, fetchurl, ncurses, gpgme }: 2 3stdenv.mkDerivation rec { 4 pname = "gpgstats"; 5 version = "0.5"; 6 7 src = fetchurl { 8 url = "https://www.vanheusden.com/gpgstats/${pname}-${version}.tgz"; 9 sha256 = "1n3njqhjwgfllcxs0xmk89dzgirrpfpfzkj71kqyvq97gc1wbcxy"; 10 }; 11 12 buildInputs = [ ncurses gpgme ]; 13 14 installPhase = '' 15 mkdir -p $out/bin 16 cp gpgstats $out/bin 17 ''; 18 19 NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.is64bit) 20 "-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1"; 21 22 meta = with lib; { 23 description = "Calculates statistics on the keys in your gpg key-ring"; 24 longDescription = '' 25 GPGstats calculates statistics on the keys in your key-ring. 26 ''; 27 homepage = "http://www.vanheusden.com/gpgstats/"; 28 license = licenses.gpl2; 29 maintainers = with maintainers; [ davidak ]; 30 platforms = platforms.unix; 31 }; 32} 33