libsidplayfp: 2.9.0 -> 2.10.1, modernise (#349889)

This commit is contained in:
Cosima Neidahl 2024-10-31 17:40:02 +01:00 committed by GitHub
commit e84e2650b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,38 +1,35 @@
{ stdenv
, lib
, fetchFromGitHub
, makeFontsConf
, nix-update-script
, testers
, autoreconfHook
, docSupport ? true
, doxygen
, graphviz
, libexsid
, libgcrypt
, perl
, pkg-config
, unittest-cpp
, xa
{
stdenv,
lib,
fetchFromGitHub,
makeFontsConf,
nix-update-script,
testers,
autoreconfHook,
docSupport ? true,
doxygen,
graphviz,
libexsid,
libgcrypt,
perl,
pkg-config,
unittest-cpp,
xa,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libsidplayfp";
version = "2.9.0";
version = "2.10.1";
src = fetchFromGitHub {
owner = "libsidplayfp";
repo = "libsidplayfp";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-m1bbbtNJvoY6l2+jMbEN/dR9V7LZ4f1lHHGnn0F4bmU=";
hash = "sha256-yZ2IiSzl78N/jrhKls/l2klnePJYKU1NCnZcBKUWiuU=";
};
outputs = [
"out"
] ++ lib.optionals docSupport [
"doc"
];
outputs = [ "out" ] ++ lib.optionals docSupport [ "doc" ];
postPatch = ''
patchShebangs .
@ -40,24 +37,24 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
perl
pkg-config
xa
] ++ lib.optionals docSupport [
doxygen
graphviz
];
nativeBuildInputs =
[
autoreconfHook
perl
pkg-config
xa
]
++ lib.optionals docSupport [
doxygen
graphviz
];
buildInputs = [
libexsid
libgcrypt
];
checkInputs = [
unittest-cpp
];
checkInputs = [ unittest-cpp ];
enableParallelBuilding = true;
@ -69,18 +66,16 @@ stdenv.mkDerivation (finalAttrs: {
];
# Make Doxygen happy with the setup, reduce log noise
FONTCONFIG_FILE = lib.optionalString docSupport (makeFontsConf { fontDirectories = [ ]; });
env.FONTCONFIG_FILE = lib.optionalString docSupport (makeFontsConf {
fontDirectories = [ ];
});
preBuild = ''
# Reduce noise from fontconfig during doc building
export XDG_CACHE_HOME=$TMPDIR
'';
buildFlags = [
"all"
] ++ lib.optionals docSupport [
"doc"
];
buildFlags = [ "all" ] ++ lib.optionals docSupport [ "doc" ];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
@ -94,7 +89,7 @@ stdenv.mkDerivation (finalAttrs: {
updateScript = nix-update-script { };
};
meta = with lib; {
meta = {
description = "Library to play Commodore 64 music derived from libsidplay2";
longDescription = ''
libsidplayfp is a C64 music player library which integrates
@ -103,9 +98,13 @@ stdenv.mkDerivation (finalAttrs: {
C64 system and the SID chips.
'';
homepage = "https://github.com/libsidplayfp/libsidplayfp";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ ramkromberg OPNA2608 ];
platforms = platforms.all;
changelog = "https://github.com/libsidplayfp/libsidplayfp/releases/tag/v${finalAttrs.version}";
license = with lib.licenses; [ gpl2Plus ];
maintainers = with lib.maintainers; [
ramkromberg
OPNA2608
];
platforms = lib.platforms.all;
pkgConfigModules = [
"libsidplayfp"
"libstilview"