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";
|
|
|
|
version = "9d";
|
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";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "1vkip9rz4hz8f31a2kl7wl7f772wg1z0fg1fbd1653wzwlxllhvc";
|
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
|
|
|
};
|
|
|
|
}
|