nixpkgs/pkgs/development/libraries/libjpeg-turbo/default.nix
Vladimír Čunát 5b7837c0d3 libjpeg-turbo: make Hydra only build it on Linux
I don't know what's wrong with darwin.
Anyway, it's unused on darwin by default.
2015-05-18 13:46:09 +02:00

27 lines
732 B
Nix

{ stdenv, fetchurl, nasm }:
stdenv.mkDerivation rec {
name = "libjpeg-turbo-1.4.0";
src = fetchurl {
url = "mirror://sourceforge/libjpeg-turbo/${name}.tar.gz";
sha256 = "1vmv5ciqq98gi2ishqbvlx9hsk7sl06lr6xkcgw480jiddadhfnr";
};
buildInputs = [ nasm ];
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;
};
}