2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, alsa-lib
|
|
, python3
|
|
, SDL2
|
|
, libXext
|
|
, Cocoa
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "schismtracker";
|
|
version = "20231029";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-ELCV5c79fFX1C4+S9bnDFOx3jAs/R2TERH1Q9fkBGnY=";
|
|
};
|
|
|
|
configureFlags = [ "--enable-dependency-tracking" ]
|
|
++ lib.optional stdenv.isDarwin "--disable-sdltest";
|
|
|
|
nativeBuildInputs = [ autoreconfHook python3 ];
|
|
|
|
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/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ ftrvxmtrx ];
|
|
};
|
|
}
|