Skip to content

Commit

Permalink
sdl3: fix building for static windows
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-serwin committed Feb 5, 2025
1 parent 799ba5b commit 0b12583
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/by-name/sd/sdl3/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ stdenv.mkDerivation (finalAttrs: {
# Many dependencies are not directly linked to, but dlopen()'d at runtime. Adding them to the RPATH
# helps them be found
NIX_LDFLAGS =
lib.optionalString (stdenv.hostPlatform.extensions.sharedLibrary == ".so")
lib.optionalString
(stdenv.hostPlatform.hasSharedLibraries && stdenv.hostPlatform.extensions.sharedLibrary == ".so")
"-rpath ${
lib.makeLibraryPath (finalAttrs.dlopenBuildInputs ++ finalAttrs.dlopenPropagatedBuildInputs)
}";
Expand Down Expand Up @@ -230,7 +231,7 @@ stdenv.mkDerivation (finalAttrs: {
changelog = "https://github.com/libsdl-org/SDL/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.zlib;
maintainers = with lib.maintainers; [ getchoo ];
platforms = lib.platforms.unix;
platforms = lib.platforms.unix ++ lib.platforms.windows;
pkgConfigModules = [ "sdl3" ];
};
})

0 comments on commit 0b12583

Please sign in to comment.