mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
4550405ac9
The default has been to use buildInputs for build dependencies. This doesn't work when cross-compiling.
27 lines
776 B
Nix
27 lines
776 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
|
, astring, fmt, fpath, logs, rresult
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-bos-${version}";
|
|
version = "0.2.0";
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
|
|
sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
|
buildInputs = [ findlib topkg ];
|
|
propagatedBuildInputs = [ astring fmt fpath logs rresult ];
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = {
|
|
description = "Basic OS interaction for OCaml";
|
|
homepage = https://erratique.ch/software/bos;
|
|
license = stdenv.lib.licenses.isc;
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|