depot/third_party/nixpkgs/pkgs/development/libraries/libjpeg/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

29 lines
781 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";
sha256 = "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 = 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;
};
})