about summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-07-16 13:36:27 +0300
committerNikolay Amiantov <ab@fmap.me>2016-07-16 13:36:27 +0300
commitd936272b79ec12b84ba3b03b6bdde6e390e835a9 (patch)
tree6c1e4b10143f40f31a92a2b60a2357d13bd52bc8 /pkgs/tools/security
parent00e8e4c2ed98ed915e54ee2ee8c402573588adee (diff)
parent61a3610853428afb03d89d159569229a557a1cb6 (diff)
downloadnixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.tar
nixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.tar.gz
nixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.tar.bz2
nixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.tar.lz
nixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.tar.xz
nixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.tar.zst
nixlib-d936272b79ec12b84ba3b03b6bdde6e390e835a9.zip
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/secp256k1/default.nix35
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 000000000000..f7a53469545f
--- /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 ];
+  };
+}