567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
810 B
Nix
38 lines
810 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
cmdliner,
|
|
ipaddr,
|
|
logs,
|
|
lwt,
|
|
alcotest,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "mirage-runtime";
|
|
version = "4.10.1";
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/mirage/releases/download/v${finalAttrs.version}/mirage-${finalAttrs.version}.tbz";
|
|
hash = "sha256:1155b5e9a585d3b44dfdd72777d94a7222b0f88a1737593bfb1f09954b6fb914";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
propagatedBuildInputs = [
|
|
cmdliner
|
|
ipaddr
|
|
logs
|
|
lwt
|
|
];
|
|
checkInputs = [ alcotest ];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/mirage/mirage";
|
|
description = "Base MirageOS runtime library, part of every MirageOS unikernel";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ sternenseemann ];
|
|
};
|
|
})
|