From 16b9ef444a45a4fabbfe87fe6b952df856833475 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 28 Dec 2025 11:51:02 +0200 Subject: fix(overlays): Fix input hashes of unigine benchmarks --- overlays/unigine-hash-fixes/default.nix | 23 ++++++++++++++++++++++ .../unigine-hash-fixes/superposition-hash.patch | 13 ++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 overlays/unigine-hash-fixes/default.nix create mode 100644 overlays/unigine-hash-fixes/superposition-hash.patch diff --git a/overlays/unigine-hash-fixes/default.nix b/overlays/unigine-hash-fixes/default.nix new file mode 100644 index 0000000..5c2957e --- /dev/null +++ b/overlays/unigine-hash-fixes/default.nix @@ -0,0 +1,23 @@ +final: prev: rec { + unigine-heaven = prev.unigine-heaven.overrideAttrs (prevAttrs: { + src = builtins.fetchurl { + inherit (prevAttrs.src) url; + sha256 = "15z3v2ad84wm37pphqk162dwcz0a5i46p4zs5dy1sqnmxmfjxnsj"; + }; + }); + # unigine-superposition isn't a simple derivation, the actual fetcher + # is "hidden" behind a let binding in the source code + unigine-superposition = + let + pkgs = import + (final.applyPatches { + name = "fix-superposition"; + src = final.path; + patches = [ + ./superposition-hash.patch + ]; + }).out + { inherit (final) system; config.allowUnfree = true; }; + in + pkgs.unigine-superposition; +} diff --git a/overlays/unigine-hash-fixes/superposition-hash.patch b/overlays/unigine-hash-fixes/superposition-hash.patch new file mode 100644 index 0000000..9afa4c1 --- /dev/null +++ b/overlays/unigine-hash-fixes/superposition-hash.patch @@ -0,0 +1,13 @@ +diff --git a/pkgs/applications/graphics/unigine-superposition/default.nix b/pkgs/applications/graphics/unigine-superposition/default.nix +index 8510096d8..14bcbe371 100644 +--- a/pkgs/applications/graphics/unigine-superposition/default.nix ++++ b/pkgs/applications/graphics/unigine-superposition/default.nix +@@ -37,7 +37,7 @@ let + + src = fetchurl { + url = "https://assets.unigine.com/d/Unigine_Superposition-${version}.run"; +- sha256 = "12hzlz792pf8pvxf13fww3qhahqzwzkxq9q3mq20hbhvaphbg7nd"; ++ sha256 = "1y40wmfrbdjkmiv4k7cjg62bvzwvkp5xbm8k2lbg57pm7g3y353l"; + }; + + nativeBuildInputs = [ -- cgit v1.3.1-23-gd82d