-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to by-name and update license Format
- Loading branch information
1 parent
12f5c51
commit 1f79f8c
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |