mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
28 lines
771 B
Nix
28 lines
771 B
Nix
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-rresult";
|
|
version = "0.6.0";
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
|
|
sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
buildInputs = [ topkg ];
|
|
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
strictDeps = true;
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = {
|
|
license = lib.licenses.isc;
|
|
homepage = "https://erratique.ch/software/rresult";
|
|
description = "Result value combinators for OCaml";
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|