ocamlPackages.camlpdf: 2.2.1 → 2.3
This commit is contained in:
parent
5afde25a10
commit
c2ef0a0875
@ -1,15 +1,20 @@
|
|||||||
{ stdenv, fetchgit, ocaml, findlib, ncurses }:
|
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
|
then throw "camlpdf is not available for OCaml ${ocaml.version}"
|
||||||
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.2.1";
|
version = "2.3";
|
||||||
name = "ocaml${ocaml.version}-camlpdf-${version}";
|
name = "ocaml${ocaml.version}-camlpdf-${version}";
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = https://github.com/johnwhitington/camlpdf.git;
|
owner = "johnwhitington";
|
||||||
rev = "refs/tags/v${version}";
|
repo = "camlpdf";
|
||||||
sha256 = "0wa4rw8ccpb8xprslg88hbk352bi8bia4iffc22y55gkjr60f8gj";
|
rev = "v${version}";
|
||||||
|
sha256 = "1z8h6bjzmlscr6h6kdvzj8kspifb4n9dg7zi54z1cv2qi03kr8dk";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ncurses ];
|
buildInputs = [ ocaml findlib ];
|
||||||
|
|
||||||
# Version number in META file is wrong
|
# Version number in META file is wrong
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
@ -21,12 +26,6 @@ stdenv.mkDerivation rec {
|
|||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = with stdenv.lib;
|
|
||||||
optionals (versionAtLeast ocaml.version "4.06") [
|
|
||||||
"OCAMLBCFLAGS+=-unsafe-string"
|
|
||||||
"OCAMLNCFLAGS+=-unsafe-string"
|
|
||||||
];
|
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user