mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
encoding clerk and ninja_utils inside nix
This commit is contained in:
parent
d63eb07cc4
commit
bf3b24a3f4
38
.nix/clerk.nix
Normal file
38
.nix/clerk.nix
Normal 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
30
.nix/ninja_utils.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user