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
60
pkgs/development/ocaml-modules/cohttp/async.nix
Normal file
60
pkgs/development/ocaml-modules/cohttp/async.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildDunePackage
|
||||
, ppx_sexp_conv
|
||||
, base
|
||||
, async
|
||||
, async_kernel
|
||||
, async_unix
|
||||
, cohttp
|
||||
, conduit-async
|
||||
, uri
|
||||
, uri-sexp
|
||||
, logs
|
||||
, fmt
|
||||
, sexplib0
|
||||
, ipaddr
|
||||
, magic-mime
|
||||
, ounit
|
||||
, mirage-crypto
|
||||
, core
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cohttp-async";
|
||||
|
||||
inherit (cohttp)
|
||||
version
|
||||
src
|
||||
minimumOCamlVersion
|
||||
useDune2
|
||||
;
|
||||
|
||||
buildInputs = [ ppx_sexp_conv ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cohttp
|
||||
conduit-async
|
||||
async_kernel
|
||||
async_unix
|
||||
async
|
||||
base
|
||||
magic-mime
|
||||
logs
|
||||
fmt
|
||||
sexplib0
|
||||
uri
|
||||
uri-sexp
|
||||
ipaddr
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
ounit
|
||||
mirage-crypto
|
||||
core
|
||||
];
|
||||
|
||||
meta = cohttp.meta // {
|
||||
description = "CoHTTP implementation for the Async concurrency library";
|
||||
};
|
||||
}
|
||||
32
pkgs/development/ocaml-modules/cohttp/default.nix
Normal file
32
pkgs/development/ocaml-modules/cohttp/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, fetchurl, buildDunePackage
|
||||
, ppx_sexp_conv, base64, jsonm, re, stringext, uri-sexp
|
||||
, ocaml, fmt, alcotest
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "cohttp";
|
||||
version = "4.0.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz";
|
||||
sha256 = "bd7aa4cd2c82744990ed7c49e3ee7a40324c64cb3d8509804809155e2bacd1d2";
|
||||
};
|
||||
|
||||
buildInputs = [ jsonm ppx_sexp_conv ];
|
||||
|
||||
propagatedBuildInputs = [ base64 re stringext uri-sexp ];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
||||
checkInputs = [ fmt alcotest ];
|
||||
|
||||
meta = {
|
||||
description = "HTTP(S) library for Lwt, Async and Mirage";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
homepage = "https://github.com/mirage/ocaml-cohttp";
|
||||
};
|
||||
}
|
||||
28
pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
Normal file
28
pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, buildDunePackage, cohttp-lwt
|
||||
, conduit-lwt-unix, conduit-lwt, ppx_sexp_conv
|
||||
, cmdliner, fmt, logs, magic-mime
|
||||
, ounit
|
||||
, cacert
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cohttp-lwt-unix";
|
||||
inherit (cohttp-lwt) version src;
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
buildInputs = [ cmdliner ppx_sexp_conv ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cohttp-lwt conduit-lwt conduit-lwt-unix fmt logs magic-mime
|
||||
];
|
||||
|
||||
# TODO(@sternenseemann): fail for unknown reason
|
||||
# https://github.com/mirage/ocaml-cohttp/issues/675#issuecomment-830692742
|
||||
doCheck = false;
|
||||
checkInputs = [ ounit cacert ];
|
||||
|
||||
meta = cohttp-lwt.meta // {
|
||||
description = "CoHTTP implementation for Unix and Windows using Lwt";
|
||||
};
|
||||
}
|
||||
21
pkgs/development/ocaml-modules/cohttp/lwt.nix
Normal file
21
pkgs/development/ocaml-modules/cohttp/lwt.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs, sexplib0 }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cohttp-lwt";
|
||||
inherit (cohttp)
|
||||
version
|
||||
src
|
||||
useDune2
|
||||
minimumOCamlVersion
|
||||
;
|
||||
|
||||
buildInputs = [ ppx_sexp_conv ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cohttp ocaml_lwt logs sexplib0 uri
|
||||
];
|
||||
|
||||
meta = cohttp.meta // {
|
||||
description = "CoHTTP implementation using the Lwt concurrency library";
|
||||
};
|
||||
}
|
||||
23
pkgs/development/ocaml-modules/cohttp/mirage.nix
Normal file
23
pkgs/development/ocaml-modules/cohttp/mirage.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ buildDunePackage, cohttp, cohttp-lwt
|
||||
, mirage-flow, mirage-channel, mirage-kv
|
||||
, conduit, conduit-mirage, lwt
|
||||
, astring, magic-mime
|
||||
, ppx_sexp_conv
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cohttp-mirage";
|
||||
|
||||
inherit (cohttp) version src minimumOCamlVersion useDune2;
|
||||
|
||||
nativeBuildInputs = [ ppx_sexp_conv ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
mirage-flow mirage-channel conduit conduit-mirage mirage-kv
|
||||
lwt cohttp cohttp-lwt astring magic-mime
|
||||
];
|
||||
|
||||
meta = cohttp.meta // {
|
||||
description = "CoHTTP implementation for the MirageOS unikernel";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue