diff options
author | Chris Martin <ch.martin@gmail.com> | 2016-06-04 13:55:15 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2016-06-23 20:49:07 +0200 |
commit | 9e041fd9befe5091e49269c387b18f079f1a08e1 (patch) | |
tree | 7e652d55ee5cb0b4432fb0a59d53a4f7b128f46f /pkgs/tools/security/secp256k1/default.nix | |
parent | f473721e41ecc28cac33d6f3bed77d05be0a9778 (diff) | |
download | nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.tar nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.tar.gz nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.tar.bz2 nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.tar.lz nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.tar.xz nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.tar.zst nixpkgs-9e041fd9befe5091e49269c387b18f079f1a08e1.zip |
secp256k1: init at 2016-05-30
Diffstat (limited to 'pkgs/tools/security/secp256k1/default.nix')
-rw-r--r-- | pkgs/tools/security/secp256k1/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/security/secp256k1/default.nix b/pkgs/tools/security/secp256k1/default.nix new file mode 100644 index 00000000000..f7a53469545 --- /dev/null +++ b/pkgs/tools/security/secp256k1/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ... }: + +stdenv.mkDerivation rec { + name = "secp256k1-${version}"; + + # I can't find any version numbers, so we're just using the date + # of the last commit. + version = "2016-05-30"; + + src = fetchFromGitHub { + owner = "bitcoin-core"; + repo = "secp256k1"; + rev = "b3be8521e694eaf45dd29baea035055183c42fe2"; + sha256 = "1pgsy72w87yxbiqn96hnm8alsfx3rj7d9jlzdsypyf6i1rf6w4bq"; + }; + + buildInputs = [ autoconf automake libtool ]; + + configureFlags = [ "--enable-module-recovery" ]; + + preConfigure = "./autogen.sh"; + + meta = with stdenv.lib; { + description = "Optimized C library for EC operations on curve secp256k1"; + longDescription = '' + Optimized C library for EC operations on curve secp256k1. + Part of Bitcoin Core. This library is a work in progress + and is being used to research best practices. Use at your + own risk. + ''; + homepage = https://github.com/bitcoin-core/secp256k1; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ chris-martin ]; + }; +} |