at v192 32 lines 814 B view raw
1{ stdenv, fetchgit, ocaml, findlib, ncurses }: 2 3stdenv.mkDerivation rec { 4 version = "2.1.1"; 5 name = "ocaml-camlpdf-${version}"; 6 src = fetchgit { 7 url = https://github.com/johnwhitington/camlpdf.git; 8 rev = "refs/tags/v${version}"; 9 sha256 = "118656hc3zv5nwmbhr6llvb7q2pbxk2hz95bv8x4879a9qsnb4xr"; 10 }; 11 12 buildInputs = [ ocaml findlib ncurses ]; 13 14 # Version number in META file is wrong 15 patchPhase = '' 16 patch -p 0 META <<EOF 17 3c3 18 < version="1.7.1" 19 --- 20 > version="${version}" 21 EOF 22 ''; 23 24 createFindlibDestdir = true; 25 26 meta = with stdenv.lib; { 27 description = "An OCaml library for reading, writing and modifying PDF files"; 28 homepage = https://github.com/johnwhitington/camlpdf; 29 license = licenses.lgpl21Plus; 30 maintainers = with maintainers; [vbgl]; 31 }; 32}