|
|
|
@ -1,16 +1,14 @@ |
|
|
|
|
{ stdenv, fetchgit, ocaml, findlib, camlpdf, ncurses }: |
|
|
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.0"; |
|
|
|
|
|
|
|
|
|
let version = "2.1.1"; in |
|
|
|
|
let version = "2.2.1"; in |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation { |
|
|
|
|
name = "ocaml-cpdf-${version}"; |
|
|
|
|
name = "ocaml${ocaml.version}-cpdf-${version}"; |
|
|
|
|
|
|
|
|
|
src = fetchgit { |
|
|
|
|
url = https://github.com/johnwhitington/cpdf-source.git; |
|
|
|
|
rev = "refs/tags/v${version}"; |
|
|
|
|
sha256 = "01dq7z3admwnyp22z1h43a8f3glii3zxc9c7i6s2rgza3pd9jq4k"; |
|
|
|
|
sha256 = "1i2z417agnzzdavjfwb20r6716jl3sk5yi43ssy4jqzy6ah8x1ff"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ncurses ]; |
|
|
|
|