schismtracker: 20220506 -> 20230906

Since the last version bump, schismtracker has migrated from SDL1 to
SDL2. This is a change that improves audio options, video output
quality, and allows mouse/keyboard capture under wayland. There's also
various other fixes and improvements listed under
https://github.com/schismtracker/schismtracker/releases , and an
out-of-bounds memory access was fixed in some common rendering code that
isn't mentioned in the release notes
This commit is contained in:
Artemis Everfree 2023-09-10 06:16:59 -07:00
parent a1635b3821
commit cfaf1e6807
2 changed files with 17 additions and 5 deletions

View file

@ -4,18 +4,20 @@
, autoreconfHook , autoreconfHook
, alsa-lib , alsa-lib
, python3 , python3
, SDL , SDL2
, libXext
, Cocoa
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "schismtracker"; pname = "schismtracker";
version = "20220506"; version = "20230906";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-fK0FBn9e7l1Y/A7taFlaoas6ZPREFhEmskVBqjda6q0="; sha256 = "sha256-eW1sqfcAR3lutSyQKj7j1elkFTa8jfZqgrJYYAzMlzo=";
}; };
configureFlags = [ "--enable-dependency-tracking" ] configureFlags = [ "--enable-dependency-tracking" ]
@ -23,10 +25,18 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook python3 ]; nativeBuildInputs = [ autoreconfHook python3 ];
buildInputs = [ SDL ] ++ lib.optional stdenv.isLinux alsa-lib; buildInputs = [ SDL2 ]
++ lib.optionals stdenv.isLinux [ alsa-lib libXext ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
enableParallelBuilding = true; enableParallelBuilding = true;
# Our Darwin SDL2 doesn't have a SDL2main to link against
preConfigure = lib.optionalString stdenv.isDarwin ''
substituteInPlace configure.ac \
--replace '-lSDL2main' '-lSDL2'
'';
meta = with lib; { meta = with lib; {
description = "Music tracker application, free reimplementation of Impulse Tracker"; description = "Music tracker application, free reimplementation of Impulse Tracker";
homepage = "http://schismtracker.org/"; homepage = "http://schismtracker.org/";

View file

@ -30726,7 +30726,9 @@ with pkgs;
ptcollab = libsForQt5.callPackage ../applications/audio/ptcollab { }; ptcollab = libsForQt5.callPackage ../applications/audio/ptcollab { };
schismtracker = callPackage ../applications/audio/schismtracker { }; schismtracker = callPackage ../applications/audio/schismtracker {
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
jnetmap = callPackage ../applications/networking/jnetmap { }; jnetmap = callPackage ../applications/networking/jnetmap { };