Skip to content

Commit 3df632c

Browse files
author
a-n-n-a-l-e-e
authored
Merge pull request #280039 from freyacodes/poptracker
poptracker: init at 0.25.7
2 parents 37c7646 + 33182b1 commit 3df632c

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/poptracker.cpp b/src/poptracker.cpp
2+
index dbf477b..6ccfac2 100644
3+
--- a/src/poptracker.cpp
4+
+++ b/src/poptracker.cpp
5+
@@ -217,6 +217,7 @@ PopTracker::PopTracker(int argc, char** argv, bool cli, const json& args)
6+
Pack::addOverrideSearchPath(os_pathcat(appPath, "user-override")); // portable/system overrides
7+
Assets::addSearchPath(os_pathcat(appPath, "assets")); // system assets
8+
}
9+
+ Assets::addSearchPath("@assets@");
10+
11+
_asio = new asio::io_service();
12+
HTTP::certfile = asset("cacert.pem"); // https://curl.se/docs/caextract.html
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{ lib
2+
, stdenv
3+
, fetchFromGitHub
4+
, util-linux
5+
, SDL2
6+
, SDL2_ttf
7+
, SDL2_image
8+
, openssl
9+
, which
10+
, libsForQt5
11+
, makeWrapper
12+
}:
13+
14+
stdenv.mkDerivation (finalAttrs: {
15+
pname = "poptracker";
16+
version = "0.25.7";
17+
18+
src = fetchFromGitHub {
19+
owner = "black-sliver";
20+
repo = "PopTracker";
21+
rev = "v${finalAttrs.version}";
22+
hash = "sha256-wP2d8cWNg80KUyw1xPQMriNRg3UyXgKaSoJ17U5vqCE=";
23+
fetchSubmodules = true;
24+
};
25+
26+
patches = [ ./assets-path.diff ];
27+
28+
postPatch = ''
29+
substituteInPlace src/poptracker.cpp --replace "@assets@" "$out/share/$pname/"
30+
'';
31+
32+
enableParallelBuilding = true;
33+
34+
nativeBuildInputs = [
35+
util-linux
36+
makeWrapper
37+
];
38+
39+
buildInputs = [
40+
SDL2
41+
SDL2_ttf
42+
SDL2_image
43+
openssl
44+
];
45+
46+
buildFlags = [
47+
"native"
48+
"CONF=RELEASE"
49+
"VERSION=v${finalAttrs.version}"
50+
];
51+
52+
installPhase = ''
53+
runHook preInstall
54+
install -m555 -Dt $out/bin build/linux-x86_64/poptracker
55+
install -m444 -Dt $out/share/${finalAttrs.pname} assets/*
56+
wrapProgram $out/bin/poptracker --prefix PATH : ${lib.makeBinPath [ which libsForQt5.kdialog ]}
57+
runHook postInstall
58+
'';
59+
60+
meta = with lib; {
61+
description = "Scriptable tracker for randomized games";
62+
longDescription = ''
63+
Universal, scriptable randomizer tracking solution that is open source. Supports auto-tracking.
64+
65+
PopTracker packs should be placed in `~/PopTracker/packs` or `./packs`.
66+
'';
67+
homepage = "https://github.com/black-sliver/PopTracker";
68+
changelog = "https://github.com/black-sliver/PopTracker/releases/tag/v${finalAttrs.version}";
69+
license = licenses.gpl3Only;
70+
maintainers = with maintainers; [ freyacodes ];
71+
mainProgram = "poptracker";
72+
platforms = [ "x86_64-linux" ];
73+
};
74+
})

0 commit comments

Comments
 (0)