2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, static ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libjpeg";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "9e";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "http://www.ijg.org/files/jpegsrc.v${version}.tar.gz";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
configureFlags = lib.optional static "--enable-static --disable-shared";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.ijg.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library that implements the JPEG image file format";
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|