-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
34 lines (29 loc) · 877 Bytes
/
default.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
{ pkgs ? import <nixpkgs> { }, ocamlPackages ? pkgs.ocaml-ng.ocamlPackages_5_2
, verbosity ? "warning" }:
let
onixPackages = import ./nix/onixPackages { inherit pkgs ocamlPackages; };
api = import ./nix/api.nix { inherit pkgs onix verbosity; };
onix = ocamlPackages.buildDunePackage {
pname = "onix";
version = "0.0.6";
duneVersion = "3";
passthru = { inherit (api) env; };
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
nativeBuildInputs = [ pkgs.git onixPackages.crunch ];
propagatedBuildInputs = with onixPackages; [
bos
cmdliner
fpath
yojson
opam-core
opam-state
opam-0install
];
meta = {
description = "Build OCaml projects with Nix.";
homepage = "https://github.com/odis-labs/onix";
license = pkgs.lib.licenses.isc;
maintainers = [ ];
};
};
in onix