forked from austral/austral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
45 lines (39 loc) · 1.14 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
description = "Systems language with linear types and capability-based security.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
inputs.utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
buildInputs = with pkgs; [
# General
gmp
python311
# Tooling
ocamlPackages.ocaml
ocamlPackages.dune_3
ocamlPackages.findlib
ocamlPackages.odoc
# OCaml libraries
ocamlPackages.yojson
ocamlPackages.ppx_deriving
ocamlPackages.ounit2
ocamlPackages.menhir
ocamlPackages.sexplib
ocamlPackages.ppx_sexp_conv
ocamlPackages.zarith
];
in {
packages.default = pkgs.stdenv.mkDerivation {
pname = "austral";
version = "0.2.0";
src = ./.;
installFlags = [ "PREFIX=$(out)" ];
inherit buildInputs;
};
devShells.default = pkgs.mkShell {
inherit buildInputs;
};
});
}