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
|
2021-06-04 09:07:49 +00:00
|
|
|
, SDL
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "schismtracker";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "20220125";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-Hqbm5+YyCde/6QuyIy4NE/jG4xNDzeNjEefMr60GEZM=";
|
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
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ SDL ] ++ lib.optional stdenv.isLinux alsa-lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|