mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
2b1b03a338
ocamlPackages.cpdf: 2.7 → 2.7.1 & update license
33 lines
841 B
Nix
33 lines
841 B
Nix
{ lib, stdenv, fetchFromGitHub, which, ocaml, findlib }:
|
|
|
|
if lib.versionOlder ocaml.version "4.10"
|
|
then throw "camlpdf is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.7.1";
|
|
pname = "ocaml${ocaml.version}-camlpdf";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "johnwhitington";
|
|
repo = "camlpdf";
|
|
rev = "v${version}";
|
|
hash = "sha256-/ZKL80HqLZ9ObOvgfg+ZHFZ8m2CRe0zWT8zHIf9CXes=";
|
|
};
|
|
|
|
nativeBuildInputs = [ which ocaml findlib ];
|
|
|
|
strictDeps = true;
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "OCaml library for reading, writing and modifying PDF files";
|
|
homepage = "https://github.com/johnwhitington/camlpdf";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [vbgl];
|
|
};
|
|
}
|