2021-06-04 09:07:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-05-03 17:38:23 +00:00
|
|
|
, autoreconfHook
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2022-01-19 23:45:15 +00:00
|
|
|
, python3
|
2023-10-09 19:29:22 +00:00
|
|
|
, SDL2
|
|
|
|
, libXext
|
|
|
|
, Cocoa
|
2021-06-04 09:07:49 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "schismtracker";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "20230906";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-eW1sqfcAR3lutSyQKj7j1elkFTa8jfZqgrJYYAzMlzo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
configureFlags = [ "--enable-dependency-tracking" ]
|
|
|
|
++ lib.optional stdenv.isDarwin "--disable-sdltest";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ SDL2 ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib libXext ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# Our Darwin SDL2 doesn't have a SDL2main to link against
|
|
|
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace '-lSDL2main' '-lSDL2'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Music tracker application, free reimplementation of Impulse Tracker";
|
|
|
|
homepage = "http://schismtracker.org/";
|
2021-06-04 09:07:49 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2020-05-03 17:38:23 +00:00
|
|
|
maintainers = with maintainers; [ ftrvxmtrx ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|