sgdboop: init at 1.3.1

authored by Brian McKenna and committed by aleksana bcecded9 3e3afe51

+82
+22
pkgs/by-name/sg/sgdboop/hide_desktop_entry.patch
··· 1 + From a4ca664abfac0b7efa7dbc48c6438bc1a5333962 Mon Sep 17 00:00:00 2001 2 + From: Fazzi <faaris.ansari@proton.me> 3 + Date: Sat, 24 May 2025 20:55:50 +0100 4 + Subject: [PATCH] desktopFile: hide entry from app launchers 5 + 6 + --- 7 + linux-release/com.steamgriddb.SGDBoop.desktop | 2 +- 8 + 1 file changed, 1 insertion(+), 1 deletion(-) 9 + 10 + diff --git a/linux-release/com.steamgriddb.SGDBoop.desktop b/linux-release/com.steamgriddb.SGDBoop.desktop 11 + index 9c84cdb..9899682 100644 12 + --- a/linux-release/com.steamgriddb.SGDBoop.desktop 13 + +++ b/linux-release/com.steamgriddb.SGDBoop.desktop 14 + @@ -4,7 +4,7 @@ Comment=Apply Steam assets from SteamGridDB 15 + Exec=SGDBoop %U 16 + Terminal=false 17 + Type=Application 18 + -NoDisplay=false 19 + +NoDisplay=true 20 + Icon=com.steamgriddb.SGDBoop 21 + MimeType=x-scheme-handler/sgdb 22 + Categories=Utility
+60
pkgs/by-name/sg/sgdboop/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + curl, 6 + pkg-config, 7 + wrapGAppsHook3, 8 + }: 9 + stdenv.mkDerivation rec { 10 + pname = "sgdboop"; 11 + version = "1.3.1"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "SteamGridDB"; 15 + repo = "SGDBoop"; 16 + tag = "v${version}"; 17 + hash = "sha256-FpVQQo2N/qV+cFhYZ1FVm+xlPHSVMH4L+irnQEMlUQs="; 18 + }; 19 + 20 + patches = [ 21 + # Hide the app from app launchers, as it is not meant to be run directly 22 + # Remove when https://github.com/SteamGridDB/SGDBoop/pull/112 is merged 23 + ./hide_desktop_entry.patch 24 + ]; 25 + 26 + makeFlags = [ 27 + # The flatpak install just copies things to /app - otherwise wants to do things with XDG 28 + "FLATPAK_ID=fake" 29 + ]; 30 + 31 + postPatch = '' 32 + substituteInPlace Makefile \ 33 + --replace-fail "/app/" "$out/" 34 + ''; 35 + 36 + postInstall = '' 37 + rm -r "$out/share/metainfo" 38 + ''; 39 + 40 + nativeBuildInputs = [ 41 + pkg-config 42 + wrapGAppsHook3 43 + ]; 44 + 45 + buildInputs = [ 46 + curl 47 + ]; 48 + 49 + meta = { 50 + description = "Applying custom artwork to Steam, using SteamGridDB"; 51 + homepage = "https://github.com/SteamGridDB/SGDBoop/"; 52 + license = lib.licenses.zlib; 53 + maintainers = with lib.maintainers; [ 54 + saturn745 55 + fazzi 56 + ]; 57 + mainProgram = "SGDBoop"; 58 + platforms = lib.platforms.linux; 59 + }; 60 + }