mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
34 lines
876 B
Nix
34 lines
876 B
Nix
{ stdenv, fetchurl, ncurses, gpgme }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gpgstats";
|
|
version = "0.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.vanheusden.com/gpgstats/${pname}-${version}.tgz";
|
|
sha256 = "1n3njqhjwgfllcxs0xmk89dzgirrpfpfzkj71kqyvq97gc1wbcxy";
|
|
};
|
|
|
|
buildInputs = [ ncurses gpgme ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp gpgstats $out/bin
|
|
'';
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionals (!stdenv.is64bit)
|
|
[ "-D_FILE_OFFSET_BITS=64" "-DLARGEFILE_SOURCE=1" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
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/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ davidak ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|