aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix b/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
index 3b68acaee71..e40f6531e1f 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, camlpdf, ncurses }:
-let version = "2.3"; in
+let version = "2.3.1"; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-cpdf-${version}";
@@ -9,9 +9,13 @@ stdenv.mkDerivation {
owner = "johnwhitington";
repo = "cpdf-source";
rev = "v${version}";
- sha256 = "0i976y1v0l7x7k2n8k6v0h4bw9zlxsv04y4fdxss6dzpsfz49w23";
+ sha256 = "1gwz0iy28f67kbqap2q10nf98dalwbi03vv5j893z2an7pb4w68z";
};
+ prePatch = ''
+ substituteInPlace META --replace 'version="1.7"' 'version="${version}"'
+ '';
+
buildInputs = [ ocaml findlib ncurses ];
propagatedBuildInputs = [ camlpdf ];