9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
31 lines
943 B
Nix
31 lines
943 B
Nix
{ stdenv, lib, fetchurl, which, pkg-config, ocaml, findlib, imagemagick }:
|
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
|
then throw "magick is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-magick-0.34";
|
|
src = fetchurl {
|
|
url = "http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/ImageMagick/OCaml-ImageMagick-0.34.tgz";
|
|
sha256 = "0gn9l2qdr8gby2x8c2mb59x1kipb2plr45rbq6ymcxyi0wmzfh3q";
|
|
};
|
|
|
|
nativeBuildInputs = [ which pkg-config ];
|
|
buildInputs = [ ocaml findlib imagemagick ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
preConfigure = "substituteInPlace Makefile --replace gcc $CC";
|
|
|
|
installTargets = [ "find_install" ];
|
|
|
|
meta = {
|
|
homepage = "http://www.linux-nantes.org/~fmonnier/OCaml/ImageMagick/";
|
|
description = "ImageMagick Binding for OCaml";
|
|
license = lib.licenses.mit;
|
|
platforms = imagemagick.meta.platforms;
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|