mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-14 03:14:55 +03:00
35 lines
939 B
Nix
35 lines
939 B
Nix
{
|
|
inputs = {
|
|
flake-utils.url = github:numtide/flake-utils;
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
|
};
|
|
|
|
outputs = {nixpkgs, flake-utils, ...}:
|
|
let
|
|
systems = [ "x86_64-linux" ];
|
|
in flake-utils.lib.eachSystem systems (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
ocamlPackages = pkgs.callPackage ./.nix/packages.nix {};
|
|
in
|
|
rec {
|
|
packages = {
|
|
catala = ocamlPackages.catala;
|
|
clerk = ocamlPackages.clerk;
|
|
};
|
|
defaultPackage = packages.catala;
|
|
devShell = pkgs.mkShell {
|
|
inputsFrom = [packages.catala];
|
|
buildInputs = [
|
|
pkgs.inotify-tools
|
|
ocamlPackages.merlin
|
|
pkgs.ocamlformat
|
|
ocamlPackages.ocp-indent
|
|
ocamlPackages.utop
|
|
ocamlPackages.ocaml-lsp
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|