diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:31:50 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:32:25 +0100 |
commit | b7baf40e099b4215181fe7b0c63083b12ef2c7fb (patch) | |
tree | a6efabd31d05b6d0a36624729e80377bbbfb0149 /nixpkgs/pkgs/by-name/po/poptracker/package.nix | |
parent | 710028664e26e85cb831a869b3da9f6993902255 (diff) | |
parent | 0799f514b1cd74878174939df79ac60ca5036673 (diff) | |
download | nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.gz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.bz2 nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.lz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.xz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.zst nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/by-name/po/poptracker/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/po/poptracker/package.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/po/poptracker/package.nix b/nixpkgs/pkgs/by-name/po/poptracker/package.nix new file mode 100644 index 000000000000..6ef94feb3484 --- /dev/null +++ b/nixpkgs/pkgs/by-name/po/poptracker/package.nix @@ -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" ]; + }; +}) |