diff options
| Commit | 16b9ef444a45a4fabbfe87fe6b952df856833475 (patch) | |
|---|---|---|
| Author | 2025-12-28 11:51:02 +0200 | |
| Committer | 2025-12-28 11:54:59 +0200 | |
| Files | 9d4787a324119a9a1b3f928f635eee5d27cde94a | |
| nix-16b9ef444a45a4fabbfe87fe6b952df856833475.tar nix-16b9ef444a45a4fabbfe87fe6b952df856833475.tar.gz nix-16b9ef444a45a4fabbfe87fe6b952df856833475.zip | ||
| Parent | f7bed22149f90458e8649f4c8e1753c8489c383d (diff) | |
fix(overlays): Fix input hashes of unigine benchmarks
2 files changed, 36 insertions, 0 deletions
| -rw-r--r-- | overlays/unigine-hash-fixes/default.nix | 23 | ||||
| -rw-r--r-- | overlays/unigine-hash-fixes/superposition-hash.patch | 13 |
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 = [ |
