@@ -1,23 +1,23 @@
11{ lib, stdenv, fetchurl, static ? false }:
22
3−with lib;
4−
5−stdenv.mkDerivation {
6− name = "libjpeg-9d";
3+stdenv.mkDerivation rec {
4+ pname = "libjpeg";
5+ version = "9d";
76
87 src = fetchurl {
9− url = "http://www.ijg.org/files/jpegsrc.v9d.tar.gz";
8+ url = "http://www.ijg.org/files/jpegsrc.v${version}.tar.gz";
109 sha256 = "1vkip9rz4hz8f31a2kl7wl7f772wg1z0fg1fbd1653wzwlxllhvc";
1110 };
1211
13− configureFlags = optional static "--enable-static --disable-shared";
12+ configureFlags = lib.optional static "--enable-static --disable-shared";
1413
1514 outputs = [ "bin" "dev" "out" "man" ];
1615
17− meta = {
18− homepage = "http://www.ijg.org/";
16+ meta = with lib; {
17+ homepage = "https://www.ijg.org/";
1918 description = "A library that implements the JPEG image file format";
20− license = lib.licenses.free;
21− platforms = lib.platforms.unix;
19+ maintainers = with maintainers; [ ];
20+ license = licenses.free;
21+ platforms = platforms.unix;
2222 };
2323}