depot/third_party/nixpkgs/pkgs/development/ocaml-modules/bos/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

29 lines
803 B
Nix

{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
, astring, fmt, fpath, logs, rresult
}:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-bos";
version = "0.2.1";
src = fetchurl {
url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc=";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
propagatedBuildInputs = [ astring fmt fpath logs rresult ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = {
description = "Basic OS interaction for OCaml";
homepage = "https://erratique.ch/software/bos";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}