nixpkgs/pkgs/development/tools/ocaml/ocamlbuild/default.nix
Ryan Mulligan 7312e850c1 ocamlPackages.ocamlbuild: 0.11.0 -> 0.12.0
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- ran `/nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0/bin/ocamlbuild --help` got 0 exit code
- ran `/nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0/bin/ocamlbuild --version` and found version 0.12.0
- ran `/nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0/bin/ocamlbuild --help` and found version 0.12.0
- ran `/nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0/bin/ocamlbuild.native --help` got 0 exit code
- ran `/nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0/bin/ocamlbuild.native --version` and found version 0.12.0
- ran `/nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0/bin/ocamlbuild.native --help` and found version 0.12.0
- found 0.12.0 with grep in /nix/store/b1b0f9iyawv0rm483q2fbbfhgjgpjdik-ocamlbuild-0.12.0
- directory tree listing: https://gist.github.com/3b75d2c602f455856f9642228b53d2e7
2018-03-20 22:23:17 -07:00

36 lines
897 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib }:
let
version = "0.12.0";
in
stdenv.mkDerivation {
name = "ocamlbuild-${version}";
inherit version;
src = fetchFromGitHub {
owner = "ocaml";
repo = "ocamlbuild";
rev = version;
sha256 = "1shyim50ms0816fphc4mk0kldcx3pnba2i6m10q0cbm18m9d7chq";
};
createFindlibDestdir = true;
buildInputs = [ ocaml findlib ];
configurePhase = ''
make -f configure.make Makefile.config \
"OCAMLBUILD_PREFIX=$out" \
"OCAMLBUILD_BINDIR=$out/bin" \
"OCAMLBUILD_MANDIR=$out/share/man" \
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
'';
meta = with stdenv.lib; {
homepage = https://github.com/ocaml/ocamlbuild/;
description = "A build system with builtin rules to easily build most OCaml projects";
license = licenses.lgpl2;
inherit (ocaml.meta) platforms;
maintainers = with maintainers; [ vbgl ];
};
}