lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

SDL2_ttf: record provided pkg-config modules in meta

This is verified using testers.hasPkgConfigModules which leads to a
slight refactor of the expression.

+9 -4
+9 -4
pkgs/development/libraries/SDL2_ttf/default.nix
··· 1 - { lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, harfbuzz, libGL }: 1 + { lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, harfbuzz, libGL, testers }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "SDL2_ttf"; 5 5 version = "2.20.2"; 6 6 7 7 src = fetchurl { 8 - url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz"; 8 + url = "https://www.libsdl.org/projects/SDL_ttf/release/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; 9 9 sha256 = "sha256-ncce2TSHUhsQeixKnKa/Q/ti9r3dXCawVea5FBiiIFM="; 10 10 }; 11 11 ··· 18 18 ++ lib.optional (!stdenv.isDarwin) libGL 19 19 ++ lib.optional stdenv.isDarwin darwin.libobjc; 20 20 21 + passthru.tests.pkg-config = testers.hasPkgConfigModules { 22 + package = finalAttrs.finalPackage; 23 + }; 24 + 21 25 meta = with lib; { 22 26 description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer"; 23 27 platforms = platforms.unix; 24 28 license = licenses.zlib; 25 29 homepage = "https://github.com/libsdl-org/SDL_ttf"; 30 + pkgConfigModules = [ "SDL2_ttf" ]; 26 31 }; 27 - } 32 + })