-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280039 from freyacodes/poptracker
poptracker: init at 0.25.7
- Loading branch information
Showing
2 changed files
with
86 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,12 @@ | ||
diff --git a/src/poptracker.cpp b/src/poptracker.cpp | ||
index dbf477b..6ccfac2 100644 | ||
--- a/src/poptracker.cpp | ||
+++ b/src/poptracker.cpp | ||
@@ -217,6 +217,7 @@ PopTracker::PopTracker(int argc, char** argv, bool cli, const json& args) | ||
Pack::addOverrideSearchPath(os_pathcat(appPath, "user-override")); // portable/system overrides | ||
Assets::addSearchPath(os_pathcat(appPath, "assets")); // system assets | ||
} | ||
+ Assets::addSearchPath("@assets@"); | ||
|
||
_asio = new asio::io_service(); | ||
HTTP::certfile = asset("cacert.pem"); // https://curl.se/docs/caextract.html |
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,74 @@ | ||
{ lib | ||
, stdenv | ||
, fetchFromGitHub | ||
, util-linux | ||
, SDL2 | ||
, SDL2_ttf | ||
, SDL2_image | ||
, openssl | ||
, which | ||
, libsForQt5 | ||
, makeWrapper | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "poptracker"; | ||
version = "0.25.7"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "black-sliver"; | ||
repo = "PopTracker"; | ||
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-wP2d8cWNg80KUyw1xPQMriNRg3UyXgKaSoJ17U5vqCE="; | ||
fetchSubmodules = true; | ||
}; | ||
|
||
patches = [ ./assets-path.diff ]; | ||
|
||
postPatch = '' | ||
substituteInPlace src/poptracker.cpp --replace "@assets@" "$out/share/$pname/" | ||
''; | ||
|
||
enableParallelBuilding = true; | ||
|
||
nativeBuildInputs = [ | ||
util-linux | ||
makeWrapper | ||
]; | ||
|
||
buildInputs = [ | ||
SDL2 | ||
SDL2_ttf | ||
SDL2_image | ||
openssl | ||
]; | ||
|
||
buildFlags = [ | ||
"native" | ||
"CONF=RELEASE" | ||
"VERSION=v${finalAttrs.version}" | ||
]; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
install -m555 -Dt $out/bin build/linux-x86_64/poptracker | ||
install -m444 -Dt $out/share/${finalAttrs.pname} assets/* | ||
wrapProgram $out/bin/poptracker --prefix PATH : ${lib.makeBinPath [ which libsForQt5.kdialog ]} | ||
runHook postInstall | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Scriptable tracker for randomized games"; | ||
longDescription = '' | ||
Universal, scriptable randomizer tracking solution that is open source. Supports auto-tracking. | ||
PopTracker packs should be placed in `~/PopTracker/packs` or `./packs`. | ||
''; | ||
homepage = "https://github.com/black-sliver/PopTracker"; | ||
changelog = "https://github.com/black-sliver/PopTracker/releases/tag/v${finalAttrs.version}"; | ||
license = licenses.gpl3Only; | ||
maintainers = with maintainers; [ freyacodes ]; | ||
mainProgram = "poptracker"; | ||
platforms = [ "x86_64-linux" ]; | ||
}; | ||
}) |