mirror of https://gitlab.crans.org/nounous/nixos
53 lines
1.7 KiB
Nix
53 lines
1.7 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.11";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [ "x86_64-linux" ];
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
rec {
|
|
devShells.default = pkgs.mkShell {
|
|
packages = [ ];
|
|
};
|
|
packages =
|
|
let
|
|
ocamlPackages = pkgs.ocaml-ng.ocamlPackages_5_2;
|
|
in
|
|
rec {
|
|
belenios = pkgs.callPackage ./belenios { inherit ocamlPackages belenios-server belenios-tool; };
|
|
belenios-lib = pkgs.callPackage ./belenios/lib.nix {
|
|
inherit belenios ocamlPackages belenios-platform;
|
|
};
|
|
belenios-tool = pkgs.callPackage ./belenios/tool.nix {
|
|
inherit
|
|
belenios
|
|
ocamlPackages
|
|
belenios-lib
|
|
belenios-platform-native
|
|
;
|
|
};
|
|
belenios-server = pkgs.callPackage ./belenios/server.nix {
|
|
inherit
|
|
belenios
|
|
ocamlPackages
|
|
belenios-lib
|
|
belenios-platform-native
|
|
belenios-platform-js
|
|
;
|
|
};
|
|
belenios-platform = pkgs.callPackage ./belenios/platform.nix { inherit belenios ocamlPackages; };
|
|
belenios-platform-native = pkgs.callPackage ./belenios/platform-native.nix {
|
|
inherit belenios ocamlPackages belenios-platform;
|
|
};
|
|
belenios-platform-js = pkgs.callPackage ./belenios/platform-js.nix {
|
|
inherit belenios ocamlPackages belenios-platform;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|