nixpkgs/pkgs/development/ocaml-modules/stdcompat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
730 B
Nix
Raw Normal View History

2021-05-29 15:21:54 +02:00
{ stdenv, lib, fetchurl
, ocaml, findlib
}:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-stdcompat";
2022-02-11 22:29:08 +01:00
version = "18";
2021-05-29 15:21:54 +02:00
src = fetchurl {
url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
2022-02-11 22:29:08 +01:00
sha256 = "sha256:01y67rndjlzfp5zq0gbqpg9skqq2hfbvhbq9lfhhk5xidr98sfj8";
2021-05-29 15:21:54 +02:00
};
nativeBuildInputs = [ ocaml findlib ];
strictDeps = true;
# build fails otherwise
enableParallelBuilding = false;
2021-05-29 15:21:54 +02:00
configureFlags = [ "--libdir=$(OCAMLFIND_DESTDIR)" ];
2021-05-29 15:21:54 +02:00
meta = {
homepage = "https://github.com/thierry-martinez/stdcompat";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}