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.nix19
1 files changed, 7 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix b/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
index b6473126158..5df15316e32 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/cpdf/default.nix
@@ -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 = ''