2020-08-04 08:37:54 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2020-08-04 08:37:54 +02:00
|
|
|
, libsidplayfp
|
|
|
|
, alsaSupport ? stdenv.hostPlatform.isLinux
|
|
|
|
, alsaLib
|
|
|
|
, pulseSupport ? stdenv.hostPlatform.isLinux
|
|
|
|
, libpulseaudio
|
|
|
|
}:
|
2018-07-01 12:36:57 +02:00
|
|
|
|
2020-08-04 08:37:54 +02:00
|
|
|
assert alsaSupport -> alsaLib != null;
|
|
|
|
assert pulseSupport -> libpulseaudio != null;
|
|
|
|
let
|
|
|
|
inherit (lib) optional;
|
|
|
|
inherit (lib.versions) majorMinor;
|
|
|
|
in
|
2018-07-01 12:36:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sidplayfp";
|
2020-08-04 08:37:54 +02:00
|
|
|
version = "2.0.2";
|
2018-07-01 12:36:57 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-08-04 08:37:54 +02:00
|
|
|
url = "mirror://sourceforge/sidplay-residfp/sidplayfp/${majorMinor version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1s2dfs9z1hwarpfzawg11wax9nh0zcqx4cafwq7iysckyg4scz4k";
|
2018-07-01 12:36:57 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ]
|
2020-08-04 08:37:54 +02:00
|
|
|
++ optional alsaSupport alsaLib
|
|
|
|
++ optional pulseSupport libpulseaudio;
|
|
|
|
|
2018-07-01 12:36:57 +02:00
|
|
|
buildInputs = [ libsidplayfp ];
|
|
|
|
|
2020-08-04 08:37:54 +02:00
|
|
|
meta = with lib; {
|
2018-07-01 12:36:57 +02:00
|
|
|
description = "A SID player using libsidplayfp";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/sidplay-residfp/";
|
2018-07-01 12:36:57 +02:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ dezgeg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|