summary refs log tree commit diff
path: root/pkgs/applications/audio/schismtracker/default.nix
blob: bf74dd64f9268d06d4922ed1c71967b708a12482 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, alsa-lib
, python
, SDL
}:

stdenv.mkDerivation rec {
  pname = "schismtracker";
  version = "20211116";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = version;
    sha256 = "1kcw4rwphyqh0hwwjsydzwg484xj17rb5lc8pfsixsg77z50ayzz";
  };

  configureFlags = [ "--enable-dependency-tracking" ]
    ++ lib.optional stdenv.isDarwin "--disable-sdltest";

  nativeBuildInputs = [ autoreconfHook python ];

  buildInputs = [ SDL ] ++ lib.optional stdenv.isLinux alsa-lib;

  enableParallelBuilding = true;

  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 ];
  };
}