Unverified Commit e84e2650 authored by Cosima Neidahl's avatar Cosima Neidahl Committed by GitHub
Browse files

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

parents 82e387f1 2e48e944
Loading
Loading
Loading
Loading
+44 −45
Original line number Diff line number Diff line
{ 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,12 +37,14 @@ stdenv.mkDerivation (finalAttrs: {

  strictDeps = true;

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      autoreconfHook
      perl
      pkg-config
      xa
  ] ++ lib.optionals docSupport [
    ]
    ++ lib.optionals docSupport [
      doxygen
      graphviz
    ];
@@ -55,9 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
    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"