Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, static ? false }: 2 3stdenv.mkDerivation rec { 4 pname = "libjpeg"; 5 version = "9e"; 6 7 src = fetchurl { 8 url = "http://www.ijg.org/files/jpegsrc.v${version}.tar.gz"; 9 sha256 = "sha256-QHfWpqda6wGIT3CJGdJZNMkzBeSffj8225EpMg5vTz0="; 10 }; 11 12 configureFlags = lib.optional static "--enable-static --disable-shared"; 13 14 outputs = [ "bin" "dev" "out" "man" ]; 15 16 meta = with lib; { 17 homepage = "https://www.ijg.org/"; 18 description = "A library that implements the JPEG image file format"; 19 maintainers = with maintainers; [ ]; 20 license = licenses.free; 21 platforms = platforms.unix; 22 }; 23}