Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: SDL2 2.32.68 -> 2.32.70 https://github.com/libsdl-org/sdl2-compat/releases attrpath: SDL2 Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/1yp491fpnip6a13bvl6znl9hxbp1vvil-packages.json.drv building '/nix/store/1yp491fpnip6a13bvl6znl9hxbp1vvil-packages.json.drv'... Going to be running update for following packages: - sdl2-compat-2.32.68 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - sdl2-compat-2.32.68: UPDATING ... - sdl2-compat-2.32.68: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/sd/sdl2-compat/package.nix b/pkgs/by-name/sd/sdl2-compat/package.nix index 5b6376cd9538..b1143ff1a0fc 100644 --- a/pkgs/by-name/sd/sdl2-compat/package.nix +++ b/pkgs/by-name/sd/sdl2-compat/package.nix @@ -30,13 +30,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "sdl2-compat"; - version = "2.32.68"; + version = "2.32.70"; src = fetchFromGitHub { owner = "libsdl-org"; repo = "sdl2-compat"; tag = "release-${finalAttrs.version}"; - hash = "sha256-66AHlsl53q9efRqZOzI4JiUbaGByrSMoQFj3K7udTsQ="; + hash = "sha256-IKfcF03I+kCewjdEcw7ANd6sCZvjNksIhBfJan9SSUY="; }; nativeBuildInputs = [ No auto update branch exists Old version 2.32.68" not present in staging derivation file with contents: { cmake, lib, fetchFromGitHub, ninja, sdl3, stdenv, testers, libx11, libGL, nix-update-script, # passthru tests SDL2_ttf, SDL2_net, SDL2_gfx, SDL2_sound, SDL2_mixer, SDL2_image, sdl12-compat, ffmpeg, qemu, x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows, }: let # tray support on sdl3 pulls in gtk3, which is quite an expensive dependency. # sdl2 does not support the tray, so we can just disable that requirement. sdl3' = sdl3.override { traySupport = false; }; in stdenv.mkDerivation (finalAttrs: { pname = "sdl2-compat"; version = "2.32.70"; src = fetchFromGitHub { owner = "libsdl-org"; repo = "sdl2-compat"; tag = "release-${finalAttrs.version}"; hash = "sha256-IKfcF03I+kCewjdEcw7ANd6sCZvjNksIhBfJan9SSUY="; }; nativeBuildInputs = [ cmake ninja ]; buildInputs = [ sdl3' ] ++ lib.optional x11Support libx11; checkInputs = [ libGL ]; outputs = [ "out" "dev" ]; outputBin = "dev"; # SDL3 is dlopened at runtime, leave it in runpath dontPatchELF = true; cmakeFlags = [ (lib.cmakeBool "SDL2COMPAT_TESTS" finalAttrs.finalPackage.doCheck) (lib.cmakeFeature "CMAKE_INSTALL_RPATH" (lib.makeLibraryPath [ sdl3' ])) (lib.cmakeFeature "CMAKE_BUILD_RPATH" (lib.makeLibraryPath [ sdl3' ])) ]; # skip timing-based tests as those are flaky env.SDL_TESTS_QUICK = 1; doCheck = true; 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 = { pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; inherit sdl12-compat SDL2_ttf SDL2_net SDL2_gfx SDL2_sound SDL2_mixer SDL2_image ffmpeg ; } // lib.optionalAttrs stdenv.hostPlatform.isLinux { inherit qemu; }; updateScript = nix-update-script { extraArgs = [ "--version-regex" "release-(.*)" ]; }; }; meta = { description = "SDL2 compatibility layer that uses SDL3 behind the scenes"; homepage = "https://libsdl.org"; changelog = "https://github.com/libsdl-org/sdl2-compat/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.zlib; maintainers = with lib.maintainers; [ nadiaholmquist ]; teams = [ lib.teams.sdl ]; platforms = lib.platforms.all; pkgConfigModules = [ "sdl2-compat" "sdl2" ]; }; })