ocamlPackages.mirage-time: use Dune 3
This commit is contained in:
parent
624432c25b
commit
629c0fbcad
|
@ -1,19 +1,19 @@
|
||||||
{ lib, buildDunePackage, fetchurl, ocaml_lwt }:
|
{ lib, buildDunePackage, fetchurl, lwt }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
minimumOCamlVersion = "4.06";
|
minimalOCamlVersion = "4.08";
|
||||||
|
|
||||||
pname = "mirage-time";
|
pname = "mirage-time";
|
||||||
version = "3.0.0";
|
version = "3.0.0";
|
||||||
|
|
||||||
useDune2 = true;
|
duneVersion = "3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/mirage-time/releases/download/v${version}/mirage-time-v${version}.tbz";
|
url = "https://github.com/mirage/mirage-time/releases/download/v${version}/mirage-time-v${version}.tbz";
|
||||||
sha256 = "sha256-DUCUm1jix+i3YszIzgZjRQRiM8jJXQ49F6JC/yicvXw=";
|
hash = "sha256-DUCUm1jix+i3YszIzgZjRQRiM8jJXQ49F6JC/yicvXw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ ocaml_lwt ];
|
propagatedBuildInputs = [ lwt ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mirage/mirage-time";
|
homepage = "https://github.com/mirage/mirage-time";
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{ buildDunePackage, fetchurl, mirage-time, ocaml_lwt, duration }:
|
{ buildDunePackage, fetchurl, mirage-time, lwt, duration }:
|
||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
pname = "mirage-time-unix";
|
pname = "mirage-time-unix";
|
||||||
|
|
||||||
inherit (mirage-time) src useDune2 version minimumOCamlVersion;
|
inherit (mirage-time) src version;
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
propagatedBuildInputs = [ mirage-time ocaml_lwt duration ];
|
propagatedBuildInputs = [ mirage-time lwt duration ];
|
||||||
|
|
||||||
meta = mirage-time.meta // {
|
meta = mirage-time.meta // {
|
||||||
description = "Time operations for MirageOS on Unix";
|
description = "Time operations for MirageOS on Unix";
|
||||||
|
|
Loading…
Reference in a new issue