1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
Mario Rodas 2019-12-18 04:24:00 -05:00
parent 86d06ee968
commit 1b1f9584e5
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8
3 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,31 @@
{ stdenv, fetchurl, ocaml, findlib }:
if stdenv.lib.versionOlder ocaml.version "4.07"
then throw "dune is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "dune";
version = "2.1.0";
src = fetchurl {
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
sha256 = "1hf8c0djx2v1jpjba0z096gw6qdr0igsljrf0qh0ggphg9valsmj";
};
buildInputs = [ ocaml findlib ];
buildFlags = "release";
dontAddPrefix = true;
installFlags = [ "PREFIX=${placeholder "out"}" "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
meta = {
homepage = "https://dune.build/";
description = "A composable build system";
maintainers = [ stdenv.lib.maintainers.vbgl stdenv.lib.maintainers.marsam ];
license = stdenv.lib.licenses.mit;
inherit (ocaml.meta) platforms;
};
}

View file

@ -1614,7 +1614,7 @@ in
dua = callPackage ../tools/misc/dua { };
inherit (ocamlPackages) dune;
inherit (ocamlPackages) dune dune_2;
duperemove = callPackage ../tools/filesystems/duperemove { };

View file

@ -16,6 +16,8 @@ let
buildDunePackage = callPackage ../build-support/ocaml/dune.nix {};
buildDune2Package = buildDunePackage.override { dune = dune_2; };
alcotest = callPackage ../development/ocaml-modules/alcotest {};
angstrom = callPackage ../development/ocaml-modules/angstrom { };
@ -237,6 +239,8 @@ let
dune = callPackage ../development/tools/ocaml/dune { };
dune_2 = callPackage ../development/tools/ocaml/dune/2.nix { };
earley = callPackage ../development/ocaml-modules/earley { };
earlybird = callPackage ../development/ocaml-modules/earlybird { };