mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-30 03:32:05 +03:00
joinmarket: remove custom secp256k1 package
python-bitcointx 1.1.4 is compatible with libsecp256k1 0.4.0 in nixpkgs. Joinmarket uses libsecp256k1 only through python-bitcointx.
This commit is contained in:
parent
a2e1478a7c
commit
e56ca3de6b
@ -21,8 +21,6 @@ let self = {
|
|||||||
mempool-backend
|
mempool-backend
|
||||||
mempool-frontend
|
mempool-frontend
|
||||||
mempool-nginx-conf;
|
mempool-nginx-conf;
|
||||||
# The secp256k1 version used by joinmarket
|
|
||||||
secp256k1 = pkgs.callPackage ./secp256k1 { };
|
|
||||||
trustedcoin = pkgs.callPackage ./trustedcoin { };
|
trustedcoin = pkgs.callPackage ./trustedcoin { };
|
||||||
|
|
||||||
pyPkgs = import ./python-packages self pkgs.python3;
|
pyPkgs = import ./python-packages self pkgs.python3;
|
||||||
|
@ -19,7 +19,7 @@ rec {
|
|||||||
# Packages only used by joinmarket
|
# Packages only used by joinmarket
|
||||||
bencoderpyx = callPackage ./bencoderpyx {};
|
bencoderpyx = callPackage ./bencoderpyx {};
|
||||||
chromalog = callPackage ./chromalog {};
|
chromalog = callPackage ./chromalog {};
|
||||||
python-bitcointx = callPackage ./python-bitcointx { inherit (nbPkgs) secp256k1; };
|
python-bitcointx = callPackage ./python-bitcointx { inherit (self.pkgs) secp256k1; };
|
||||||
runes = callPackage ./runes {};
|
runes = callPackage ./runes {};
|
||||||
sha256 = callPackage ./sha256 {};
|
sha256 = callPackage ./sha256 {};
|
||||||
|
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
{ lib
|
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
|
||||||
, autoreconfHook
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "secp256k1";
|
|
||||||
|
|
||||||
version = "2021-12-03";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "bitcoin-core";
|
|
||||||
repo = "secp256k1";
|
|
||||||
rev = "490022745164b56439688b0fc04f9bd43578e5c3";
|
|
||||||
hash = "sha256-6CmGWiecthaGWSKX7VHWj5zvDAwVE9U5YOo9JRJWYwI=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
|
||||||
|
|
||||||
configureFlags = [
|
|
||||||
"--enable-benchmark=no"
|
|
||||||
"--enable-exhaustive-tests=no"
|
|
||||||
"--enable-experimental"
|
|
||||||
"--enable-module-ecdh"
|
|
||||||
"--enable-module-recovery"
|
|
||||||
"--enable-module-schnorrsig"
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
checkPhase = "./tests";
|
|
||||||
|
|
||||||
meta = with 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; [ nixbitcoin ];
|
|
||||||
platforms = with platforms; unix;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user