mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
26 lines
659 B
Nix
26 lines
659 B
Nix
{ lib, stdenv, fetchurl, libtiff, libjpeg, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lcms2";
|
|
version = "2.15";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/lcms/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-sgy8vQ9QNDO+Kk6BRiEG+mEFCjUHTcJKTjVnktlxqzk=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|