balatro: add official icon (#482912)

This commit is contained in:
Ryan Burns
2026-01-30 19:52:44 +00:00
committed by GitHub
+8 -1
View File
@@ -1,4 +1,5 @@
{
fetchurl,
stdenv,
lib,
love,
@@ -22,6 +23,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-DXX+FkrM8zEnNNSzesmHiN0V8Ljk+buLf5DE5Z3pP0c=";
};
srcIcon = fetchurl {
name = "balatro.png";
url = "https://play-lh.googleusercontent.com/RSPv_SMlA3Lun8VHaJD7xCBQg29eCJR9sNJtZNJGlybVs8byYVLz4WnohrbLScC9srg";
hash = "sha256-GoStvXBYI8x5b8T0wwH5D5C3Kahu0ssCyOM8MoLxy8Q=";
};
nativeBuildInputs = [
p7zip
copyDesktopItems
@@ -54,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
# 'official' way of doing it.
installPhase = ''
runHook preInstall
install -Dm444 $tmpdir/resources/textures/2x/balatro.png -t $out/share/icons/
install -Dm644 $srcIcon $out/share/icons/hicolor/scalable/apps/balatro.png
cat ${lib.getExe love} $patchedExe > $out/share/Balatro
chmod +x $out/share/Balatro