|
|
|
@ -1,25 +1,20 @@ |
|
|
|
|
{ stdenv, fetchgit, ocaml, findlib, camlpdf, ncurses }: |
|
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, camlpdf, ncurses }: |
|
|
|
|
|
|
|
|
|
let version = "2.2.1"; in |
|
|
|
|
let version = "2.3"; in |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation { |
|
|
|
|
name = "ocaml${ocaml.version}-cpdf-${version}"; |
|
|
|
|
|
|
|
|
|
src = fetchgit { |
|
|
|
|
url = https://github.com/johnwhitington/cpdf-source.git; |
|
|
|
|
rev = "refs/tags/v${version}"; |
|
|
|
|
sha256 = "1i2z417agnzzdavjfwb20r6716jl3sk5yi43ssy4jqzy6ah8x1ff"; |
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "johnwhitington"; |
|
|
|
|
repo = "cpdf-source"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "0i976y1v0l7x7k2n8k6v0h4bw9zlxsv04y4fdxss6dzpsfz49w23"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ncurses ]; |
|
|
|
|
propagatedBuildInputs = [ camlpdf ]; |
|
|
|
|
|
|
|
|
|
makeFlags = with stdenv.lib; |
|
|
|
|
optionals (versionAtLeast ocaml.version "4.06") [ |
|
|
|
|
"OCAMLBCFLAGS+=-unsafe-string" |
|
|
|
|
"OCAMLNCFLAGS+=-unsafe-string" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
createFindlibDestdir = true; |
|
|
|
|
|
|
|
|
|
postInstall = '' |
|
|
|
|