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

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

53 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2021-03-28 12:24:39 +00:00
, fetchFromGitHub
2021-06-16 08:53:56 +00:00
, nix-update-script
2021-03-28 12:24:39 +00:00
, autoreconfHook
, perl
, pkg-config
, libsidplayfp
, alsaSupport ? stdenv.hostPlatform.isLinux
, alsa-lib
, pulseSupport ? stdenv.hostPlatform.isLinux
, libpulseaudio
2021-03-28 12:24:39 +00:00
, out123Support ? stdenv.hostPlatform.isDarwin
, mpg123
}:
2018-07-01 10:36:57 +00:00
stdenv.mkDerivation rec {
pname = "sidplayfp";
2023-03-20 14:48:17 +00:00
version = "2.4.1";
2018-07-01 10:36:57 +00:00
2021-03-28 12:24:39 +00:00
src = fetchFromGitHub {
owner = "libsidplayfp";
repo = "sidplayfp";
rev = "v${version}";
2023-03-20 14:48:17 +00:00
sha256 = "sha256-15KG+LkPkCLFsnWHUAQpQbqol/izAn/HRinszVRB5Ao=";
2018-07-01 10:36:57 +00:00
};
2021-03-28 12:24:39 +00:00
nativeBuildInputs = [ autoreconfHook perl pkg-config ];
2021-03-28 12:24:39 +00:00
buildInputs = [ libsidplayfp ]
++ lib.optional alsaSupport alsa-lib
2021-03-28 12:24:39 +00:00
++ lib.optional pulseSupport libpulseaudio
++ lib.optional out123Support mpg123;
configureFlags = lib.optionals out123Support [
"--with-out123"
];
enableParallelBuilding = true;
2018-07-01 10:36:57 +00:00
2021-06-16 08:53:56 +00:00
passthru = {
updateScript = nix-update-script { };
2021-06-16 08:53:56 +00:00
};
meta = with lib; {
2018-07-01 10:36:57 +00:00
description = "A SID player using libsidplayfp";
2021-03-28 12:24:39 +00:00
homepage = "https://github.com/libsidplayfp/sidplayfp";
2018-07-01 10:36:57 +00:00
license = with licenses; [ gpl2Plus ];
2021-03-28 12:24:39 +00:00
maintainers = with maintainers; [ dezgeg OPNA2608 ];
platforms = platforms.all;
2018-07-01 10:36:57 +00:00
};
}