diff --git a/pkgs/by-name/sg/sgdboop/package.nix b/pkgs/by-name/sg/sgdboop/package.nix index c6530e63ab2e..318a4929d93f 100644 --- a/pkgs/by-name/sg/sgdboop/package.nix +++ b/pkgs/by-name/sg/sgdboop/package.nix @@ -9,27 +9,28 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "sgdboop"; - version = "1.3.2"; + version = "1.4.2"; src = fetchFromGitHub { owner = "SteamGridDB"; repo = "SGDBoop"; tag = "v${finalAttrs.version}"; - hash = "sha256-/pXZMq80fb7Z+619ACnu/ZYWpouh59PIiruWY7l2cnQ="; + hash = "sha256-17LfPmqvSrXvIcKfjTrpopAIzue62TXw/yXXmAQOeR0="; }; - makeFlags = [ - # The flatpak install just copies things to /app - otherwise wants to do things with XDG - "FLATPAK_ID=fake" - ]; + installPhase = '' + runHook preInstall - postPatch = '' - substituteInPlace Makefile \ - --replace-fail "/app/" "$out/" - ''; + install -Dm755 SGDBoop \ + $out/bin/SGDBoop - postInstall = '' - rm -r "$out/share/metainfo" + install -Dm644 res/linux/com.steamgriddb.SGDBoop.desktop \ + $out/share/applications/com.steamgriddb.SGDBoop.desktop + + install -Dm444 res/com.steamgriddb.SGDBoop.svg \ + $out/share/icons/hicolor/scalable/apps/com.steamgriddb.SGDBoop.svg + + runHook postInstall ''; nativeBuildInputs = [