mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
4b2e84f301
Co-Authored-By: Alex Ameen <alex.ameen.tx@gmail.com>
30 lines
781 B
Nix
30 lines
781 B
Nix
{ lib, stdenv, fetchurl
|
|
, testers
|
|
, static ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libjpeg";
|
|
version = "9e";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
|
|
sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0=";
|
|
};
|
|
|
|
configureFlags = lib.optional static "--enable-static --disable-shared";
|
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.ijg.org/";
|
|
description = "A library that implements the JPEG image file format";
|
|
maintainers = with maintainers; [ ];
|
|
license = licenses.free;
|
|
pkgConfigModules = [ "libjpeg" ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|