5 , alsaSupport ? stdenv.hostPlatform.isLinux
8 , pulseSupport ? stdenv.hostPlatform.isLinux
11 , out123Support ? stdenv.hostPlatform.isDarwin
17 stdenv.mkDerivation (finalAttrs: {
21 src = fetchFromGitHub {
22 owner = "libsidplayfp";
24 rev = "v${finalAttrs.version}";
25 hash = "sha256-X2ds7pYglxvwLOHXfCULwSeWAS9l2Y3PUdSxcuugwHs=";
38 ] ++ lib.optionals alsaSupport [
40 ] ++ lib.optionals pulseSupport [
42 ] ++ lib.optionals out123Support [
47 (lib.strings.withFeature out123Support "out123")
50 enableParallelBuilding = true;
53 updateScript = nix-update-script { };
57 description = "SID player using libsidplayfp";
58 homepage = "https://github.com/libsidplayfp/sidplayfp";
59 license = with licenses; [ gpl2Plus ];
60 mainProgram = "sidplayfp";
61 maintainers = with maintainers; [ dezgeg OPNA2608 ];
62 platforms = platforms.all;