3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #52075 from kisonecat/master

hashcash: init at 1.22
This commit is contained in:
Jan Tojnar 2019-01-08 03:45:24 +01:00 committed by GitHub
commit 153c0bdb6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 0 deletions

View file

@ -2303,6 +2303,11 @@
github = "kirelagin";
name = "Kirill Elagin";
};
kisonecat = {
email = "kisonecat@gmail.com";
github = "kisonecat";
name = "Jim Fowler";
};
kkallio = {
email = "tierpluspluslists@gmail.com";
name = "Karn Kallio";

View file

@ -0,0 +1,31 @@
{ stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
pname = "hashcash";
version = "1.22";
buildInputs = [ openssl ];
src = fetchurl {
url = "http://www.hashcash.org/source/hashcash-${version}.tgz";
sha256 = "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1";
};
makeFlags = [
"generic-openssl"
"LIBCRYPTO=-lcrypto"
];
installFlags = [
"INSTALL_PATH=${placeholder "out"}/bin"
"MAN_INSTALL_PATH=${placeholder "out"}/share/man/man1"
"DOC_INSTALL_PATH=${placeholder "out"}/share/doc/hashcash-$(version)"
];
meta = with stdenv.lib; {
description = "Proof-of-work algorithm used as spam and denial-of-service counter measure";
homepage = http://hashcash.org;
license = licenses.gpl2;
maintainers = with maintainers; [ kisonecat ];
};
}

View file

@ -3241,6 +3241,8 @@ in
hardlink = callPackage ../tools/system/hardlink { };
hashcash = callPackage ../tools/security/hashcash { };
hashcat = callPackage ../tools/security/hashcat { };
hash_extender = callPackage ../tools/security/hash_extender { };