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

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

44 lines
819 B
Nix
Raw Normal View History

2023-06-16 23:10:08 +00:00
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
alsa-lib,
libxmp,
AudioUnit,
CoreAudio,
}:
2014-06-10 04:03:13 +00:00
stdenv.mkDerivation rec {
pname = "xmp";
2023-06-16 23:10:08 +00:00
version = "4.2.0";
2014-06-10 04:03:13 +00:00
2023-06-16 23:10:08 +00:00
src = fetchFromGitHub {
owner = "libxmp";
repo = "xmp-cli";
rev = "${pname}-${version}";
hash = "sha256-037k1rFjGR6XFtr08bzs4zVz+GyUGuuutuWFlNEuATA=";
2014-06-10 04:03:13 +00:00
};
2023-06-16 23:10:08 +00:00
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs =
[ libxmp ]
++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
AudioUnit
CoreAudio
];
2023-04-13 07:56:11 +00:00
meta = with lib; {
description = "Extended module player";
homepage = "https://xmp.sourceforge.net/";
license = licenses.gpl2Plus;
platforms = platforms.unix;
2024-02-11 02:19:15 +00:00
mainProgram = "xmp";
2023-04-13 07:56:11 +00:00
};
2014-06-10 04:03:13 +00:00
}