libsidplayfp: 2.15.2 -> 2.16.0 (#470955)

This commit is contained in:
Cosima Neidahl
2025-12-30 09:39:03 +00:00
committed by GitHub
+12 -2
View File
@@ -11,6 +11,7 @@
graphviz,
libexsid,
libgcrypt,
libusb1,
perl,
pkg-config,
xa,
@@ -18,14 +19,14 @@
stdenv.mkDerivation (finalAttrs: {
pname = "libsidplayfp";
version = "2.15.2";
version = "2.16.0";
src = fetchFromGitHub {
owner = "libsidplayfp";
repo = "libsidplayfp";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-/GXRqLt2wPCUiOKlaEq52APOOYWgbaejzJcppZgMgfA=";
hash = "sha256-0eupR9HNhF8TERCtNTH8qx7mohLI7im8btJtByWHoY8=";
};
outputs = [ "out" ] ++ lib.optionals docSupport [ "doc" ];
@@ -50,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
libexsid
libgcrypt
libusb1
];
enableParallelBuilding = true;
@@ -58,6 +60,13 @@ stdenv.mkDerivation (finalAttrs: {
(lib.strings.enableFeature true "hardsid")
(lib.strings.withFeature true "gcrypt")
(lib.strings.withFeature true "exsid")
(lib.strings.withFeature true "usbsid")
# Supposedly runtime detection only supported on GCC
# https://github.com/libsidplayfp/libsidplayfp/commit/65874166b14d44467782d2996f7b644fbde0ee87
# __builtin_cpu_supports on GCC's list of x86 built-in functions
(lib.strings.withFeatureAs true "simd" (
if (stdenv.cc.isGNU && stdenv.hostPlatform.isx86) then "runtime" else "none"
))
(lib.strings.enableFeature finalAttrs.finalPackage.doCheck "tests")
];
@@ -84,6 +93,7 @@ stdenv.mkDerivation (finalAttrs: {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = "rc$";
};
};