git.iko.soy/typeable/nixpkgs
on master help sign in
secp256k1: init at 2016-05-30
commit9e041fd9befe5091e49269c387b18f079f1a08e1 authorChris Martin <ch.martin@gmail.com> dateSat 4 Jun 2016, 13:55 (10 years ago) parentf473721
2 files changed+37
pkgs/tools/security/secp256k1/default.nix+35 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/secp256k1/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ... }:
2+
3+stdenv.mkDerivation rec {
4+ name = "secp256k1-${version}";
5+
6+ # I can't find any version numbers, so we're just using the date
7+ # of the last commit.
8+ version = "2016-05-30";
9+
10+ src = fetchFromGitHub {
11+ owner = "bitcoin-core";
12+ repo = "secp256k1";
13+ rev = "b3be8521e694eaf45dd29baea035055183c42fe2";
14+ sha256 = "1pgsy72w87yxbiqn96hnm8alsfx3rj7d9jlzdsypyf6i1rf6w4bq";
15+ };
16+
17+ buildInputs = [ autoconf automake libtool ];
18+
19+ configureFlags = [ "--enable-module-recovery" ];
20+
21+ preConfigure = "./autogen.sh";
22+
23+ meta = with stdenv.lib; {
24+ description = "Optimized C library for EC operations on curve secp256k1";
25+ longDescription = ''
26+ Optimized C library for EC operations on curve secp256k1.
27+ Part of Bitcoin Core. This library is a work in progress
28+ and is being used to research best practices. Use at your
29+ own risk.
30+ '';
31+ homepage = https://github.com/bitcoin-core/secp256k1;
32+ license = with licenses; [ mit ];
33+ maintainers = with maintainers; [ chris-martin ];
34+ };
35+}
pkgs/top-level/all-packages.nix+2
@@ -3289,6 +3289,8 @@ in
32893289
32903290 seccure = callPackage ../tools/security/seccure { };
32913291
3292+ secp256k1 = callPackage ../tools/security/secp256k1 { };
3293+
32923294 securefs = callPackage ../tools/filesystems/securefs { };
32933295
32943296 setroot = callPackage ../tools/X11/setroot { };