about summary refs log tree commit diff
path: root/pkgs/games/itch
diff options
context:
space:
mode:
authorMartino Fontana <tinozzo123@tutanota.com>2022-08-18 11:48:29 +0200
committerMartino Fontana <tinozzo123@tutanota.com>2022-08-18 11:48:29 +0200
commitd5130db7cf002738ce329d57732c0f354f12da92 (patch)
tree4d0ff4b5a28a4cadf613103144218de401deff03 /pkgs/games/itch
parent7b4875cfd37f16107d527d71eefdfb2d8b74505d (diff)
itch: fix icons location
Diffstat (limited to 'pkgs/games/itch')
-rw-r--r--pkgs/games/itch/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/games/itch/default.nix b/pkgs/games/itch/default.nix
index 6f6dbde15d63c..7aed72dd531da 100644
--- a/pkgs/games/itch/default.nix
+++ b/pkgs/games/itch/default.nix
@@ -35,13 +35,14 @@ stdenvNoCC.mkDerivation rec {
     sha256 = "sha256-5MP6X33Jfu97o5R1n6Og64Bv4ZMxVM0A8lXeQug+bNA=";
   };
 
-  icons = fetchFromGitHub {
-    owner = "itchio";
-    repo = pname;
-    rev = "v${version}";
-    hash = "sha256-DZBmf8fe0zw5uiQjNKXw8g/vU2hjNDa87z/7XuhyXog=";
-    sparseCheckout = "release/images/itch-icons";
-  };
+  icons = let sparseCheckout = "/release/images/itch-icons"; in
+    fetchFromGitHub {
+        owner = "itchio";
+        repo = pname;
+        rev = "v${version}";
+        hash = "sha256-DZBmf8fe0zw5uiQjNKXw8g/vU2hjNDa87z/7XuhyXog=";
+        inherit sparseCheckout;
+      } + sparseCheckout;
 
   nativeBuildInputs = [ copyDesktopItems makeWrapper ];
 
@@ -68,7 +69,7 @@ stdenvNoCC.mkDerivation rec {
     install -Dm644 LICENSE -t "$out/share/licenses/$pkgname/"
     install -Dm644 LICENSES.chromium.html -t "$out/share/licenses/$pkgname/"
 
-    for icon in $icons/release/images/itch-icons/icon*.png
+    for icon in $icons/icon*.png
     do
       iconsize="''${icon#$icons/icon}"
       iconsize="''${iconsize%.png}"