1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, alsa-lib, libxmp, AudioUnit, CoreAudio }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "${pname}-${version}";
11 hash = "sha256-037k1rFjGR6XFtr08bzs4zVz+GyUGuuutuWFlNEuATA=";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ libxmp ]
16 ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]
17 ++ lib.optionals stdenv.hostPlatform.isDarwin [ AudioUnit CoreAudio ];
20 description = "Extended module player";
21 homepage = "https://xmp.sourceforge.net/";
22 license = licenses.gpl2Plus;
23 platforms = platforms.unix;