Fix nix build for #306

This commit is contained in:
TWal 2022-09-05 15:05:52 +02:00 committed by Denis Merigoux
parent 01e333b833
commit 844f2dfbba
No known key found for this signature in database
GPG Key ID: EE99DCFA365C3EE3
3 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@
, calendar
, cmdliner_1_1_0
, cppo
, dates_calc
, fetchFromGitHub
, js_of_ocaml
, js_of_ocaml-ppx
@ -43,6 +44,7 @@ buildDunePackage rec {
bindlib
cmdliner_1_1_0
cppo
dates_calc
js_of_ocaml
js_of_ocaml-ppx
menhir

16
.nix/dates_calc.nix Normal file
View File

@ -0,0 +1,16 @@
{ lib, fetchurl, buildDunePackage }:
buildDunePackage rec {
pname = "dates_calc";
version = "0.0.4";
minimumOCamlVersion = "4.11.0";
duneVersion = "2";
src = fetchurl
{
url = "https://github.com/CatalaLang/dates-calc/archive/${version}.tar.gz";
sha256 = "sha256-lWhNBK50r3qhY3PXRHZVvqDee6Y4+3vC51ZfjLxGryg=";
};
}

View File

@ -28,4 +28,5 @@ ocamlPackages.overrideScope' (self: super: {
clerk = self.callPackage ./clerk.nix { };
ppx_yojson_conv = self.callPackage ./ppx_yojson_conv.nix { };
ubase = self.callPackage ./ubase.nix { };
dates_calc = self.callPackage ./dates_calc.nix { };
})