ocamlPackages.cpdf: 2.2.1 → 2.3
This commit is contained in:
parent
c2ef0a0875
commit
2f43ae44c5
|
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml${ocaml.version}-cpdf-${version}";
|
name = "ocaml${ocaml.version}-cpdf-${version}";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = https://github.com/johnwhitington/cpdf-source.git;
|
owner = "johnwhitington";
|
||||||
rev = "refs/tags/v${version}";
|
repo = "cpdf-source";
|
||||||
sha256 = "1i2z417agnzzdavjfwb20r6716jl3sk5yi43ssy4jqzy6ah8x1ff";
|
rev = "v${version}";
|
||||||
|
sha256 = "0i976y1v0l7x7k2n8k6v0h4bw9zlxsv04y4fdxss6dzpsfz49w23";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ncurses ];
|
buildInputs = [ ocaml findlib ncurses ];
|
||||||
propagatedBuildInputs = [ camlpdf ];
|
propagatedBuildInputs = [ camlpdf ];
|
||||||
|
|
||||||
makeFlags = with stdenv.lib;
|
|
||||||
optionals (versionAtLeast ocaml.version "4.06") [
|
|
||||||
"OCAMLBCFLAGS+=-unsafe-string"
|
|
||||||
"OCAMLNCFLAGS+=-unsafe-string"
|
|
||||||
];
|
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue