|
|
|
@ -1,17 +1,17 @@ |
|
|
|
|
{ lib, stdenv, fetchFromGitHub, which, ocaml, findlib }: |
|
|
|
|
|
|
|
|
|
if !lib.versionAtLeast ocaml.version "4.02" |
|
|
|
|
if !lib.versionAtLeast ocaml.version "4.10" |
|
|
|
|
then throw "camlpdf is not available for OCaml ${ocaml.version}" |
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
|
version = "2.4"; |
|
|
|
|
version = "2.5"; |
|
|
|
|
name = "ocaml${ocaml.version}-camlpdf-${version}"; |
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "johnwhitington"; |
|
|
|
|
repo = "camlpdf"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "09kzrgmlxb567315p3fy59ba0kv7xhp548n9i3l4wf9n06p0ww9m"; |
|
|
|
|
sha256 = "sha256:1qmsa0xgi960y7r20mvf8hxiiml7l1908s4dm7nq262f19w51gsl"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
buildInputs = [ which ocaml findlib ]; |
|
|
|
|