mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
itch: fix icons location
This commit is contained in:
parent
7b4875cfd3
commit
d5130db7cf
@ -35,13 +35,14 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
sha256 = "sha256-5MP6X33Jfu97o5R1n6Og64Bv4ZMxVM0A8lXeQug+bNA=";
|
sha256 = "sha256-5MP6X33Jfu97o5R1n6Og64Bv4ZMxVM0A8lXeQug+bNA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
icons = fetchFromGitHub {
|
icons = let sparseCheckout = "/release/images/itch-icons"; in
|
||||||
owner = "itchio";
|
fetchFromGitHub {
|
||||||
repo = pname;
|
owner = "itchio";
|
||||||
rev = "v${version}";
|
repo = pname;
|
||||||
hash = "sha256-DZBmf8fe0zw5uiQjNKXw8g/vU2hjNDa87z/7XuhyXog=";
|
rev = "v${version}";
|
||||||
sparseCheckout = "release/images/itch-icons";
|
hash = "sha256-DZBmf8fe0zw5uiQjNKXw8g/vU2hjNDa87z/7XuhyXog=";
|
||||||
};
|
inherit sparseCheckout;
|
||||||
|
} + sparseCheckout;
|
||||||
|
|
||||||
nativeBuildInputs = [ copyDesktopItems makeWrapper ];
|
nativeBuildInputs = [ copyDesktopItems makeWrapper ];
|
||||||
|
|
||||||
@ -68,7 +69,7 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
install -Dm644 LICENSE -t "$out/share/licenses/$pkgname/"
|
install -Dm644 LICENSE -t "$out/share/licenses/$pkgname/"
|
||||||
install -Dm644 LICENSES.chromium.html -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
|
do
|
||||||
iconsize="''${icon#$icons/icon}"
|
iconsize="''${icon#$icons/icon}"
|
||||||
iconsize="''${iconsize%.png}"
|
iconsize="''${iconsize%.png}"
|
||||||
|
Loading…
Reference in New Issue
Block a user