Skip to content

Commit

Permalink
Merge pull request #253699 from reckenrode/sdl2-ttf-fix
Browse files Browse the repository at this point in the history
SDL2_ttf: use Harfbuzz from nixpkgs
  • Loading branch information
marsam authored Sep 10, 2023
2 parents 3eefd12 + c64ea82 commit 66fe742
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/libraries/SDL2_ttf/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, libGL }:
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2, freetype, harfbuzz, libGL }:

stdenv.mkDerivation rec {
pname = "SDL2_ttf";
Expand All @@ -9,11 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-ncce2TSHUhsQeixKnKa/Q/ti9r3dXCawVea5FBiiIFM=";
};

configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
configureFlags = [ "--disable-harfbuzz-builtin" ]
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" ];

nativeBuildInputs = [ pkg-config ];

buildInputs = [ SDL2 freetype ]
buildInputs = [ SDL2 freetype harfbuzz ]
++ lib.optional (!stdenv.isDarwin) libGL
++ lib.optional stdenv.isDarwin darwin.libobjc;

Expand Down

0 comments on commit 66fe742

Please sign in to comment.