2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, util-linux
|
|
|
|
, SDL2
|
|
|
|
, SDL2_ttf
|
|
|
|
, SDL2_image
|
|
|
|
, openssl
|
|
|
|
, which
|
|
|
|
, libsForQt5
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "poptracker";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.26.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "black-sliver";
|
|
|
|
repo = "PopTracker";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-NeUIU+vXML9lP+JL7MJyGNxZB0ggAngOpf8mMgOE+r8=";
|
2024-01-25 14:12:00 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2024-01-25 14:12:00 +00:00
|
|
|
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}";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ freyacodes pyrox0 ];
|
2024-01-25 14:12:00 +00:00
|
|
|
mainProgram = "poptracker";
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
})
|