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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
781 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
, testers
, static ? false
}:
stdenv.mkDerivation (finalAttrs: {
2021-07-25 23:36:30 +00:00
pname = "libjpeg";
2022-02-12 00:01:03 +00:00
version = "9e";
src = fetchurl {
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
2022-02-12 00:01:03 +00:00
sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0=";
};
2021-07-25 23:36:30 +00:00
configureFlags = lib.optional static "--enable-static --disable-shared";
outputs = [ "bin" "dev" "out" "man" ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
2021-07-25 23:36:30 +00:00
meta = with lib; {
homepage = "https://www.ijg.org/";
description = "A library that implements the JPEG image file format";
2021-07-25 23:36:30 +00:00
maintainers = with maintainers; [ ];
license = licenses.free;
pkgConfigModules = [ "libjpeg" ];
2021-07-25 23:36:30 +00:00
platforms = platforms.unix;
};
})