Skip to content

Commit

Permalink
sgdboop: init at 1.2.8
Browse files Browse the repository at this point in the history
Move to by-name and update license

Format
  • Loading branch information
puffnfresh authored and Saturn745 committed Sep 12, 2024
1 parent 12f5c51 commit 1f79f8c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/by-name/sg/sgdboop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
curl,
iup,
}:

stdenv.mkDerivation rec {
pname = "sgdboop";
version = "1.2.8";

src = fetchFromGitHub {
owner = "SteamGridDB";
repo = "SGDBoop";
rev = "v${version}";
hash = "sha256-bdSzTwObMEBe1pHTDwXeJ3GXmOwwFp4my7qTmifX218=";
};

makeFlags = [
# Makefile copies a bundled libiup.so, so put it somewhere it won't be found
"USER_LIB_PATH=ignored"

# The Flakepak install just copies things to /app - otherwise wants to do things with XDG
"FLATPAK_ID=fake"
];

postPatch = ''
sed -i "s|Exec=|Exec=$out/bin/|" linux-release/com.steamgriddb.SGDBoop.desktop
sed -i "s|/app/|$out/|g" Makefile
'';

postInstall = ''
rm -r "$out/share/metainfo"
'';

buildInputs = [
curl
iup
];

meta = {
description = "A program used for applying custom artwork to Steam, using SteamGridDB";
homepage = "https://github.com/SteamGridDB/SGDBoop/";
license = lib.licenses.zlib;
maintainers = [ lib.maintainers.saturn745 ];
mainProgram = "SGDBoop";
platforms = lib.platforms.linux;
};
}

0 comments on commit 1f79f8c

Please sign in to comment.