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
21
pkgs/development/ocaml-modules/tls/async.nix
Normal file
21
pkgs/development/ocaml-modules/tls/async.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, buildDunePackage, tls, async, cstruct-async, core, cstruct, mirage-crypto-rng-async }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "tls-async";
|
||||
|
||||
inherit (tls) src meta version;
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
useDune2 = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async
|
||||
core
|
||||
cstruct
|
||||
cstruct-async
|
||||
mirage-crypto-rng-async
|
||||
tls
|
||||
];
|
||||
}
|
||||
54
pkgs/development/ocaml-modules/tls/default.nix
Normal file
54
pkgs/development/ocaml-modules/tls/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, fetchurl, buildDunePackage
|
||||
, cstruct, cstruct-sexp, domain-name, fmt, ppx_cstruct, ppx_sexp_conv, logs, hkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-crypto-rng, ocaml_lwt, ptime, sexplib, x509
|
||||
, ipaddr, ipaddr-sexp
|
||||
, alcotest, cstruct-unix, ounit2, randomconv
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "tls";
|
||||
version = "0.15.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
|
||||
sha256 = "b76371757249bbeabb12c333de4ea2a09c095767bdbbc83322538c0da1fc1e36";
|
||||
};
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
useDune2 = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cstruct
|
||||
cstruct-sexp
|
||||
domain-name
|
||||
fmt
|
||||
ppx_cstruct
|
||||
ppx_sexp_conv
|
||||
logs
|
||||
hkdf
|
||||
mirage-crypto
|
||||
mirage-crypto-ec
|
||||
mirage-crypto-pk
|
||||
mirage-crypto-rng
|
||||
ocaml_lwt
|
||||
ptime
|
||||
sexplib
|
||||
x509
|
||||
ipaddr
|
||||
ipaddr-sexp
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
alcotest
|
||||
cstruct-unix
|
||||
ounit2
|
||||
randomconv
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mirleft/ocaml-tls";
|
||||
description = "TLS in pure OCaml";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ sternenseemann ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/ocaml-modules/tls/mirage.nix
Normal file
26
pkgs/development/ocaml-modules/tls/mirage.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ buildDunePackage, tls
|
||||
, fmt, lwt, mirage-clock, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, mirage-flow, mirage-kv, ptime, x509
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "tls-mirage";
|
||||
inherit (tls) src version minimumOCamlVersion useDune2;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
fmt
|
||||
lwt
|
||||
mirage-clock
|
||||
mirage-crypto
|
||||
mirage-crypto-ec
|
||||
mirage-crypto-pk
|
||||
mirage-flow
|
||||
mirage-kv
|
||||
ptime
|
||||
tls
|
||||
x509
|
||||
];
|
||||
|
||||
meta = tls.meta // {
|
||||
description = "Transport Layer Security purely in OCaml, MirageOS layer";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue