depot/third_party/nixpkgs/pkgs/development/libraries/libjpeg/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

37 lines
821 B
Nix

{
lib,
stdenv,
fetchurl,
testers,
static ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libjpeg";
version = "9f";
src = fetchurl {
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
hash = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls=";
};
configureFlags = lib.optional static "--enable-static --disable-shared";
outputs = [
"bin"
"dev"
"out"
"man"
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
homepage = "https://www.ijg.org/";
description = "Library that implements the JPEG image file format";
maintainers = with lib.maintainers; [ sigmanificient ];
license = lib.licenses.free;
pkgConfigModules = [ "libjpeg" ];
platforms = lib.platforms.unix;
};
})