Unverified Commit 266484b0 authored by K900's avatar K900 Committed by GitHub
Browse files

sdl2-compat: symlink package config specification file into sdl2.pc (#393342)

parents 04275a6b 68fc06fa
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -40,9 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
    libX11
  ];

  checkInputs = [
    libGL
  ];
  checkInputs = [ libGL ];

  outputs = [
    "out"
@@ -67,6 +65,12 @@ stdenv.mkDerivation (finalAttrs: {
  patches = [ ./find-headers.patch ];
  setupHook = ./setup-hook.sh;

  postFixup = ''
    # allow as a drop in replacement for SDL2
    # Can be removed after treewide switch from pkg-config to pkgconf
    ln -s $dev/lib/pkgconfig/sdl2_compat.pc $dev/lib/pkgconfig/sdl2.pc
  '';

  passthru = {
    tests =
      let