cemu 0 -> 1 attrpath: cemu Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/1wn8zi820cwdxvg5pcw0x29626vfbfqh-packages.json.drv building '/nix/store/1wn8zi820cwdxvg5pcw0x29626vfbfqh-packages.json.drv'... Going to be running update for following packages: - cemu-2.0-73 Press Enter key to continue... Running update for: - cemu-2.0-73: UPDATING ... - cemu-2.0-73: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/applications/emulators/cemu/default.nix b/pkgs/applications/emulators/cemu/default.nix index 51454ea7ab16..eeb352bf5e02 100644 --- a/pkgs/applications/emulators/cemu/default.nix +++ b/pkgs/applications/emulators/cemu/default.nix @@ -46,13 +46,13 @@ let in stdenv.mkDerivation rec { pname = "cemu"; - version = "2.0-73"; + version = "2.0-75"; src = fetchFromGitHub { owner = "cemu-project"; repo = "Cemu"; rev = "v${version}"; - hash = "sha256-uiAga19DTFMq4/7ndOafkY/QvSJhWDSMMg8RV+KxN+E="; + hash = "sha256-JCnTa8x87jFdtWwV4YeBVrMXTOLzAL58z8RKoRFy8p8="; }; patches = [ An auto update branch exists with message `cemu: 2.0-73 -> 2.0-74`. New version is 2.0-75. The auto update branch does not match or exceed the new version. Old version 2.0-73" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub , addOpenGLRunpath , wrapGAppsHook , cmake , glslang , nasm , pkg-config , SDL2 , boost , cubeb , curl , fmt_9 , glm , gtk3 , hidapi , imgui , libpng , libusb1 , libzip , libXrender , pugixml , rapidjson , vulkan-headers , wayland , wxGTK32 , zarchive , gamemode , vulkan-loader , nix-update-script }: let # cemu doesn't build with imgui 1.90.2 or newer: # error: 'struct ImGuiIO' has no member named 'ImeWindowHandle' imgui' = imgui.overrideAttrs rec { version = "1.90.1"; src = fetchFromGitHub { owner = "ocornut"; repo = "imgui"; rev = "v${version}"; sha256 = "sha256-gf47uLeNiXQic43buB5ZnMqiotlUfIyAsP+3H7yJuFg="; }; }; in stdenv.mkDerivation rec { pname = "cemu"; version = "2.0-74"; src = fetchFromGitHub { owner = "cemu-project"; repo = "Cemu"; rev = "v${version}"; hash = "sha256-taV2HEKRUQ7k5BpgA3nwVzX8qkTN02O9kqswjdCHod0="; }; patches = [ # glslangTargets want SPIRV-Tools-opt to be defined: # > The following imported targets are referenced, but are missing: # > SPIRV-Tools-opt ./cmakelists.patch ]; nativeBuildInputs = [ addOpenGLRunpath wrapGAppsHook cmake glslang nasm pkg-config ]; buildInputs = [ SDL2 boost cubeb curl fmt_9 glm gtk3 hidapi imgui' libpng libusb1 libzip libXrender pugixml rapidjson vulkan-headers wayland wxGTK32 zarchive ]; cmakeFlags = [ "-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG" "-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG" "-DENABLE_VCPKG=OFF" "-DENABLE_FERAL_GAMEMODE=ON" # PORTABLE: # "All data created and maintained by Cemu will be in the directory where the executable file is located" "-DPORTABLE=OFF" ]; preConfigure = with lib; let tag = last (splitString "-" version); in '' rm -rf dependencies/imgui ln -s ${imgui'}/include/imgui dependencies/imgui substituteInPlace src/Common/version.h --replace " (experimental)" "-${tag} (experimental)" substituteInPlace dependencies/gamemode/lib/gamemode_client.h --replace "libgamemode.so.0" "${gamemode.lib}/lib/libgamemode.so.0" ''; installPhase = '' runHook preInstall install -Dm755 ../bin/Cemu_release $out/bin/Cemu ln -s $out/bin/Cemu $out/bin/cemu mkdir -p $out/share/applications substitute ../dist/linux/info.cemu.Cemu.desktop $out/share/applications/info.cemu.Cemu.desktop \ --replace "Exec=Cemu" "Exec=$out/bin/Cemu" install -Dm644 ../dist/linux/info.cemu.Cemu.metainfo.xml -t $out/share/metainfo install -Dm644 ../src/resource/logo_icon.png $out/share/icons/hicolor/128x128/apps/info.cemu.Cemu.png runHook postInstall ''; preFixup = let libs = [ vulkan-loader ] ++ cubeb.passthru.backendLibs; in '' gappsWrapperArgs+=( --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libs}" ) ''; passthru.updateScript = nix-update-script { }; meta = with lib; { description = "Cemu is a Wii U emulator"; homepage = "https://cemu.info"; license = licenses.mpl20; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ zhaofengli baduhai ]; mainProgram = "cemu"; }; }