Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 testers, 6 static ? false, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "libjpeg"; 11 version = "9f"; 12 13 src = fetchurl { 14 url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz"; 15 hash = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls="; 16 }; 17 18 configureFlags = lib.optional static "--enable-static --disable-shared"; 19 20 outputs = [ 21 "bin" 22 "dev" 23 "out" 24 "man" 25 ]; 26 27 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 28 29 meta = { 30 homepage = "https://www.ijg.org/"; 31 description = "Library that implements the JPEG image file format"; 32 maintainers = with lib.maintainers; [ sigmanificient ]; 33 license = lib.licenses.free; 34 pkgConfigModules = [ "libjpeg" ]; 35 platforms = lib.platforms.unix; 36 }; 37})