Loading pkgs/by-name/sd/sdl3/package.nix +7 −2 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows, }: assert lib.assertMsg ( waylandSupport -> openglSupport ) "SDL3 requires OpenGL support to enable Wayland"; stdenv.mkDerivation (finalAttrs: { pname = "sdl3"; version = "3.2.2"; Loading Loading @@ -173,7 +177,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) }"; Loading Loading @@ -230,7 +235,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" ]; }; }) Loading
pkgs/by-name/sd/sdl3/package.nix +7 −2 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows, }: assert lib.assertMsg ( waylandSupport -> openglSupport ) "SDL3 requires OpenGL support to enable Wayland"; stdenv.mkDerivation (finalAttrs: { pname = "sdl3"; version = "3.2.2"; Loading Loading @@ -173,7 +177,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) }"; Loading Loading @@ -230,7 +235,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" ]; }; })