10 , goocanvas # graphical envelope editing
15 stdenv.mkDerivation (finalAttrs: {
16 pname = "soundtracker";
20 # Past releases get moved to the "old releases" directory.
21 # Only the latest release is at the top level.
22 # Nonetheless, only the name of the file seems to affect which file is
23 # downloaded, so this path should be fine both for old and current releases.
24 url = "mirror://sourceforge/soundtracker/soundtracker-${finalAttrs.version}.tar.xz";
25 hash = "sha256-g96Z1SdFGMq7WFI6x+UtmAHPZF0C+tHUOjNhmK2ld8I=";
28 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
29 # Darwin binutils don't support D option for ar
30 # ALSA macros are missing on Darwin, causing error
31 substituteInPlace configure.ac \
32 --replace ARFLAGS=crD ARFLAGS=cru \
33 --replace AM_PATH_ALSA '#AM_PATH_ALSA'
34 # Avoid X11-specific workaround code on more than just Windows
35 substituteInPlace app/keys.c \
36 --replace '!defined(_WIN32)' '!defined(_WIN32) && !defined(__APPLE__)'
37 # "The application with bundle ID (null) is running setugid(), which is not allowed."
38 sed -i -e '/seteuid/d' -e '/setegid/d' app/main.c
42 "--with-graphics-backend=gdk"
43 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
47 enableParallelBuilding = true;
62 ] ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib;
65 description = "Music tracking tool similar in design to the DOS program FastTracker and the Amiga legend ProTracker";
67 SoundTracker is a pattern-oriented music editor (similar to the DOS
68 program 'FastTracker'). Samples are lined up on tracks and patterns
69 which are then arranged to a song. Supported module formats are XM and
70 MOD; the player code is the one from OpenCP. A basic sample recorder
71 and editor is also included.
73 homepage = "http://www.soundtracker.org/";
74 downloadPage = "https://sourceforge.net/projects/soundtracker/files/";
75 license = licenses.gpl2Plus;
76 maintainers = with maintainers; [ fgaz ];
77 platforms = platforms.all;
78 hydraPlatforms = platforms.linux; # sdl-config times out on darwin