uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/tools/security/secp256k1/default.nix
Normal file
47
pkgs/tools/security/secp256k1/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "secp256k1";
|
||||
|
||||
version = "unstable-2022-02-06";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bitcoin-core";
|
||||
repo = "secp256k1";
|
||||
rev = "5dcc6f8dbdb1850570919fc9942d22f728dbc0af";
|
||||
sha256 = "x9qG2S6tBSRseWaFIN9N2fRpY1vkv8idT3d3rfJnmaU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-benchmark=no"
|
||||
"--enable-exhaustive-tests=no"
|
||||
"--enable-experimental"
|
||||
"--enable-module-ecdh"
|
||||
"--enable-module-recovery"
|
||||
"--enable-module-schnorrsig"
|
||||
"--enable-tests=yes"
|
||||
];
|
||||
|
||||
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; [ ];
|
||||
platforms = with platforms; all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue