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
13
pkgs/development/ocaml-modules/mirage-flow/combinators.nix
Normal file
13
pkgs/development/ocaml-modules/mirage-flow/combinators.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ buildDunePackage, mirage-flow, fmt, ocaml_lwt, logs, cstruct, mirage-clock }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "mirage-flow-combinators";
|
||||
|
||||
inherit (mirage-flow) version useDune2 src;
|
||||
|
||||
propagatedBuildInputs = [ ocaml_lwt logs cstruct mirage-clock mirage-flow ];
|
||||
|
||||
meta = mirage-flow.meta // {
|
||||
description = "Flow implementations and combinators for MirageOS specialized to lwt";
|
||||
};
|
||||
}
|
||||
25
pkgs/development/ocaml-modules/mirage-flow/default.nix
Normal file
25
pkgs/development/ocaml-modules/mirage-flow/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, buildDunePackage, fetchurl, cstruct, fmt, ocaml_lwt }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "mirage-flow";
|
||||
version = "3.0.0";
|
||||
|
||||
useDune2 = true;
|
||||
minimumOCamlVersion = "4.05";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/mirage-flow/releases/download/v${version}/mirage-flow-v${version}.tbz";
|
||||
sha256 = "sha256-1wvabIXsJ0e+2IvE2V8mnSgQUDuSkT8IB75SkWlhOPw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cstruct fmt ocaml_lwt ];
|
||||
|
||||
meta = {
|
||||
description = "Flow implementations and combinators for MirageOS";
|
||||
homepage = "https://github.com/mirage/mirage-flow";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
22
pkgs/development/ocaml-modules/mirage-flow/unix.nix
Normal file
22
pkgs/development/ocaml-modules/mirage-flow/unix.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ buildDunePackage, fmt, logs, mirage-flow, ocaml_lwt, cstruct
|
||||
, alcotest, mirage-flow-combinators }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "mirage-flow-unix";
|
||||
|
||||
inherit (mirage-flow) version useDune2 src;
|
||||
|
||||
# Make tests compatible with alcotest 1.4.0
|
||||
postPatch = ''
|
||||
substituteInPlace test/test.ml --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ fmt logs mirage-flow ocaml_lwt cstruct ];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ alcotest mirage-flow-combinators ];
|
||||
|
||||
meta = mirage-flow.meta // {
|
||||
description = "Flow implementations and combinators for MirageOS on Unix";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue