2020-08-20 17:08:02 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-04-17 00:35:05 +00:00
|
|
|
, fetchFromGitHub
|
2021-06-28 23:13:55 +00:00
|
|
|
, nix-update-script
|
2021-04-17 00:35:05 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, perl
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, libsidplayfp
|
|
|
|
, alsaSupport ? stdenv.hostPlatform.isLinux
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, pulseSupport ? stdenv.hostPlatform.isLinux
|
|
|
|
, libpulseaudio
|
2021-04-17 00:35:05 +00:00
|
|
|
, out123Support ? stdenv.hostPlatform.isDarwin
|
|
|
|
, mpg123
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sidplayfp";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libsidplayfp";
|
|
|
|
repo = "sidplayfp";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-7a09ec/Ap6XCnmQekLnXbH9kPP3io4+A72dVSfp3krs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook perl pkg-config ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
buildInputs = [ libsidplayfp ]
|
2021-06-28 23:13:55 +00:00
|
|
|
++ lib.optional alsaSupport alsa-lib
|
2021-04-17 00:35:05 +00:00
|
|
|
++ lib.optional pulseSupport libpulseaudio
|
|
|
|
++ lib.optional out123Support mpg123;
|
|
|
|
|
|
|
|
configureFlags = lib.optionals out123Support [
|
|
|
|
"--with-out123"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A SID player using libsidplayfp";
|
2021-04-17 00:35:05 +00:00
|
|
|
homepage = "https://github.com/libsidplayfp/sidplayfp";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
2021-04-17 00:35:05 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg OPNA2608 ];
|
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|