1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/pkgs/development/ocaml-modules/sosa/default.nix
xaverdh 03a257e5a3
treewide: quote urls according to rfc 0045 (#145260)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-10 11:37:56 +01:00

35 lines
790 B
Nix

{ lib, fetchFromGitHub, stdenv
, findlib, ocaml, ocamlbuild
}:
if !lib.versionAtLeast ocaml.version "4.02"
then throw "sosa is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-sosa-${version}";
version = "0.3.0";
src = fetchFromGitHub {
owner = "hammerlab";
repo = "sosa";
rev = "sosa.${version}";
sha256 = "053hdv6ww0q4mivajj4iyp7krfvgq8zajq9d8x4mia4lid7j0dyk";
};
buildInputs = [ ocaml ocamlbuild findlib ];
buildPhase = "make build";
createFindlibDestdir = true;
doCheck = true;
meta = with lib; {
homepage = "http://www.hammerlab.org/docs/sosa/master/index.html";
description = "Sane OCaml String API";
license = licenses.isc;
maintainers = [ maintainers.alexfmpe ];
};
}