nixpkgs/pkgs/development/libraries/libjpeg-turbo/default.nix

36 lines
999 B
Nix
Raw Normal View History

{ stdenv, fetchurl, nasm }:
stdenv.mkDerivation rec {
2016-12-03 11:12:48 +00:00
name = "libjpeg-turbo-${version}";
version = "1.5.1";
src = fetchurl {
url = "mirror://sourceforge/libjpeg-turbo/${name}.tar.gz";
2016-12-03 11:12:48 +00:00
sha256 = "0v365hm6z6lddcqagjj15wflk66rqyw75m73cqzl65rh4lyrshj1";
}; # github releases still need autotools, surprisingly
patches =
stdenv.lib.optional (stdenv.cross.libc or null == "msvcrt")
./mingw-boolean.patch;
outputs = [ "bin" "dev" "out" "doc" ];
2013-06-26 12:46:53 +00:00
nativeBuildInputs = [ nasm ];
2013-06-26 12:46:53 +00:00
enableParallelBuilding = true;
2013-05-30 13:11:43 +00:00
doCheck = true;
checkTarget = "test";
meta = with stdenv.lib; {
homepage = http://libjpeg-turbo.virtualgl.org/;
description = "A faster (using SIMD) libjpeg implementation";
license = licenses.ijg; # and some parts under other BSD-style licenses
maintainers = [ maintainers.vcunat ];
# upstream supports darwin (and others), but it doesn't build currently
platforms = platforms.all;
hydraPlatforms = platforms.linux;
};
}