encoding clerk and ninja_utils inside nix

This commit is contained in:
lIlIlIlIIIIlIIIllIIlIllIIllIII 2022-05-31 16:56:12 +02:00
parent d63eb07cc4
commit bf3b24a3f4
No known key found for this signature in database
GPG Key ID: 0D4F3CEF398F7CC0
4 changed files with 70 additions and 0 deletions

38
.nix/clerk.nix Normal file
View File

@ -0,0 +1,38 @@
{ lib
, buildDunePackage
, odoc
, re
, ansiterminal
, cmdliner_1_1_0
, ninja_utils
, alcotest
}:
buildDunePackage rec {
pname = "ninja_utils";
version = "0.6.0"; # TODO parse `catala.opam` with opam2json
minimumOCamlVersion = "4.11";
src = ../.;
useDune2 = true;
propagatedBuildInputs = [
odoc
re
ansiterminal
cmdliner_1_1_0
ninja_utils
alcotest
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/CatalaLang/catala";
description =
"Build system for Catala, a specification language for tax and social benefits computation rules";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}

30
.nix/ninja_utils.nix Normal file
View File

@ -0,0 +1,30 @@
{ lib
, buildDunePackage
, odoc
, re
}:
buildDunePackage rec {
pname = "ninja_utils";
version = "0.6.0"; # TODO parse `catala.opam` with opam2json
minimumOCamlVersion = "4.11";
src = ../.;
useDune2 = true;
propagatedBuildInputs = [
odoc
re
];
doCheck = true;
meta = with lib; {
homepage = "https://catala-lang.org";
description =
"A collection of utility functions used to generate Ninja build files";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}

View File

@ -15,5 +15,7 @@ ocamlPackages.overrideScope' (self: super: {
});
bindlib = ocamlPackages.callPackage ./bindlib.nix { };
unionfind = ocamlPackages.callPackage ./unionfind.nix { };
ninja_utils = ocamlPackages.callPackage ./ninja_utils.nix { };
clerk = ocamlPackages.callPackage ./clerk.nix { };
ppx_yojson_conv = ocamlPackages.callPackage ./ppx_yojson_conv.nix { };
})