2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, alsa-lib, libxmp, AudioUnit, CoreAudio }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "xmp";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libxmp";
|
|
|
|
repo = "xmp-cli";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
hash = "sha256-037k1rFjGR6XFtr08bzs4zVz+GyUGuuutuWFlNEuATA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = [ libxmp ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extended module player";
|
|
|
|
homepage = "https://xmp.sourceforge.net/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "xmp";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|