17 stdenv.mkDerivation (finalAttrs: {
21 src = fetchFromGitHub {
22 owner = "black-sliver";
24 rev = "v${finalAttrs.version}";
25 hash = "sha256-Tz3rVbaHw5RfFKuLih4BEEnn3uNeLrtDQpBD2yYUzkM=";
26 fetchSubmodules = true;
29 patches = [ ./assets-path.diff ];
32 substituteInPlace src/poptracker.cpp --replace "@assets@" "$out/share/poptracker/"
35 enableParallelBuilding = true;
53 "VERSION=v${finalAttrs.version}"
58 install -m555 -Dt $out/bin build/linux-x86_64/poptracker
59 install -m444 -Dt $out/share/poptracker assets/*
60 wrapProgram $out/bin/poptracker --prefix PATH : ${
66 mkdir -p $out/share/icons/hicolor/{64x64,512x512}/apps
67 ln -s $out/share/poptracker/icon.png $out/share/icons/hicolor/64x64/apps/poptracker.png
68 ln -s $out/share/poptracker/icon512.png $out/share/icons/hicolor/512x512/apps/poptracker.png
75 desktopName = "PopTracker";
77 comment = "Universal, scriptable randomizer tracking solution";
87 description = "Scriptable tracker for randomized games";
89 Universal, scriptable randomizer tracking solution that is open source. Supports auto-tracking.
91 PopTracker packs should be placed in `~/PopTracker/packs` or `./packs`.
93 homepage = "https://github.com/black-sliver/PopTracker";
94 changelog = "https://github.com/black-sliver/PopTracker/releases/tag/v${finalAttrs.version}";
95 license = lib.licenses.gpl3Only;
96 maintainers = with lib.maintainers; [
100 mainProgram = "poptracker";
101 platforms = [ "x86_64-linux" ];