nixpkgs/pkgs/applications/audio/schismtracker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Nix
Raw Normal View History

2021-05-30 22:17:59 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, alsa-lib
2022-01-12 05:22:17 +00:00
, python3
, SDL2
, libXext
, Cocoa
2021-05-30 22:17:59 +00:00
}:
2014-12-01 18:58:25 +00:00
stdenv.mkDerivation rec {
pname = "schismtracker";
2024-03-29 04:41:04 +00:00
version = "20240328";
2014-12-01 18:58:25 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
2024-03-29 04:41:04 +00:00
sha256 = "sha256-hoP/14lbqsuQ37oJDErPoQWWk04UshImmApCFrf5wno=";
2014-12-01 18:58:25 +00:00
};
2021-05-26 05:45:49 +00:00
configureFlags = [ "--enable-dependency-tracking" ]
++ lib.optional stdenv.isDarwin "--disable-sdltest";
2014-12-01 18:58:25 +00:00
2022-01-12 05:22:17 +00:00
nativeBuildInputs = [ autoreconfHook python3 ];
2014-12-01 18:58:25 +00:00
buildInputs = [ SDL2 ]
++ lib.optionals stdenv.isLinux [ alsa-lib libXext ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
2021-11-27 00:16:27 +00:00
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; {
2014-12-01 18:58:25 +00:00
description = "Music tracker application, free reimplementation of Impulse Tracker";
homepage = "http://schismtracker.org/";
2021-05-30 22:17:59 +00:00
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ ftrvxmtrx ];
2024-02-11 02:19:15 +00:00
mainProgram = "schismtracker";
2014-12-01 18:58:25 +00:00
};
}