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
58
pkgs/development/ocaml-modules/mirage-crypto/ec.nix
Normal file
58
pkgs/development/ocaml-modules/mirage-crypto/ec.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, ocaml
|
||||
, buildDunePackage
|
||||
, mirage-crypto
|
||||
, dune-configurator
|
||||
, pkg-config
|
||||
, cstruct
|
||||
, mirage-crypto-rng
|
||||
, mirage-crypto-pk
|
||||
, hex
|
||||
, alcotest
|
||||
, asn1-combinators
|
||||
, ppx_deriving_yojson
|
||||
, ppx_deriving
|
||||
, yojson
|
||||
, withFreestanding ? false
|
||||
, ocaml-freestanding
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "mirage-crypto-ec";
|
||||
|
||||
inherit (mirage-crypto)
|
||||
minimumOCamlVersion
|
||||
src
|
||||
version
|
||||
useDune2;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
ocaml
|
||||
dune-configurator
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
cstruct
|
||||
mirage-crypto
|
||||
mirage-crypto-rng
|
||||
] ++ lib.optionals withFreestanding [
|
||||
ocaml-freestanding
|
||||
];
|
||||
|
||||
strictDeps = !doCheck;
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
hex
|
||||
alcotest
|
||||
asn1-combinators
|
||||
ppx_deriving_yojson
|
||||
ppx_deriving
|
||||
yojson
|
||||
mirage-crypto-pk
|
||||
];
|
||||
|
||||
meta = mirage-crypto.meta // {
|
||||
description = "Elliptic Curve Cryptography with primitives taken from Fiat";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue