e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
25 lines
657 B
Nix
25 lines
657 B
Nix
{ lib, stdenv, fetchurl, libtiff, libjpeg, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lcms2";
|
|
version = "2.16";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/lcms/${pname}-${version}.tar.gz";
|
|
hash = "sha256-2HPTSti5tM6gEGMfGmIo0gh0deTcXnY+uBrMI9nUWlE=";
|
|
};
|
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
propagatedBuildInputs = [ libtiff libjpeg zlib ];
|
|
|
|
# See https://trac.macports.org/ticket/60656
|
|
LDFLAGS = if stdenv.hostPlatform.isDarwin then "-Wl,-w" else null;
|
|
|
|
meta = with lib; {
|
|
description = "Color management engine";
|
|
homepage = "http://www.littlecms.com/";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|