Commit cfaf1e68 authored by Artemis Everfree's avatar Artemis Everfree
Browse files

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
parent a1635b38
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -4,18 +4,20 @@
, autoreconfHook
, alsa-lib
, python3
, SDL
, SDL2
, libXext
, Cocoa
}:

stdenv.mkDerivation rec {
  pname = "schismtracker";
  version = "20220506";
  version = "20230906";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = version;
    sha256 = "sha256-fK0FBn9e7l1Y/A7taFlaoas6ZPREFhEmskVBqjda6q0=";
    sha256 = "sha256-eW1sqfcAR3lutSyQKj7j1elkFTa8jfZqgrJYYAzMlzo=";
  };

  configureFlags = [ "--enable-dependency-tracking" ]
@@ -23,10 +25,18 @@ stdenv.mkDerivation rec {

  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;

  # 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; {
    description = "Music tracker application, free reimplementation of Impulse Tracker";
    homepage = "http://schismtracker.org/";
+3 −1
Original line number Diff line number Diff line
@@ -30726,7 +30726,9 @@ with pkgs;
  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 { };