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
40
pkgs/development/ocaml-modules/mirage/default.nix
Normal file
40
pkgs/development/ocaml-modules/mirage/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, buildDunePackage, ocaml, alcotest
|
||||
, functoria, mirage-runtime, bos
|
||||
, ipaddr, astring, logs, stdlib-shims
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "mirage";
|
||||
inherit (mirage-runtime) version src;
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ipaddr
|
||||
functoria
|
||||
mirage-runtime
|
||||
bos
|
||||
astring
|
||||
logs
|
||||
stdlib-shims
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
alcotest
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
dune install --prefix=$out --libdir=$dev/lib/ocaml/${ocaml.version}/site-lib/ ${pname}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = mirage-runtime.meta // {
|
||||
description = "The MirageOS library operating system";
|
||||
};
|
||||
}
|
||||
27
pkgs/development/ocaml-modules/mirage/runtime.nix
Normal file
27
pkgs/development/ocaml-modules/mirage/runtime.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildDunePackage, fetchurl, ipaddr, functoria-runtime
|
||||
, fmt, logs, ocaml_lwt, alcotest }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "mirage-runtime";
|
||||
version = "3.10.7";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/mirage/releases/download/v${version}/mirage-v${version}.tbz";
|
||||
sha256 = "fec4492239c6d1fdd73db4da0782e33e66202e19595bf1d52aa98972296cc72d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ipaddr functoria-runtime fmt logs ocaml_lwt ];
|
||||
checkInputs = [ alcotest ];
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mirage/mirage";
|
||||
description = "The base MirageOS runtime library, part of every MirageOS unikernel";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ sternenseemann ];
|
||||
};
|
||||
}
|
||||
13
pkgs/development/ocaml-modules/mirage/types-lwt.nix
Normal file
13
pkgs/development/ocaml-modules/mirage/types-lwt.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ lib, buildDunePackage, mirage-types
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "mirage-types-lwt";
|
||||
inherit (mirage-types) version src useDune2;
|
||||
|
||||
propagatedBuildInputs = [ mirage-types ];
|
||||
|
||||
meta = mirage-types.meta // {
|
||||
description = "Lwt module type definitions for MirageOS applications";
|
||||
};
|
||||
}
|
||||
19
pkgs/development/ocaml-modules/mirage/types.nix
Normal file
19
pkgs/development/ocaml-modules/mirage/types.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, buildDunePackage, mirage
|
||||
, mirage-block, mirage-channel, mirage-clock, mirage-console, mirage-device
|
||||
, mirage-flow, mirage-fs, mirage-kv, mirage-net, mirage-protocols, mirage-random
|
||||
, mirage-stack, mirage-time
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "mirage-types";
|
||||
inherit (mirage) src version useDune2;
|
||||
|
||||
propagatedBuildInputs = [ mirage-block mirage-channel mirage-clock
|
||||
mirage-console mirage-device mirage-flow mirage-fs mirage-kv mirage-net
|
||||
mirage-protocols mirage-random mirage-stack mirage-time
|
||||
];
|
||||
|
||||
meta = mirage.meta // {
|
||||
description = "Module type definitions for MirageOS applications";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue