Unverified Commit e30b7e10 authored by Guillaume Girol's avatar Guillaume Girol Committed by GitHub
Browse files

Merge pull request #236905 from OPNA2608/update/libsidplayfp

libsidplayfp: 2.4.2 -> 2.5.0
parents 2d23ded8 fa7b0d03
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, makeFontsConf
, nix-update-script
, autoreconfHook
, pkg-config
@@ -16,28 +17,30 @@

stdenv.mkDerivation rec {
  pname = "libsidplayfp";
  version = "2.4.2";
  version = "2.5.0";

  src = fetchFromGitHub {
    owner = "libsidplayfp";
    repo = "libsidplayfp";
    rev = "v${version}";
    fetchSubmodules = true;
    sha256 = "sha256-e+blEdO2KA/noW9pq56qZ0/vvtqQwiDbBJoQR0cQeds=";
    sha256 = "sha256-KCp/8UjVl8e3+4s1FD4GvHP7AUAS+eIB7RWhmgm5GIA=";
  };

  postPatch = ''
    patchShebangs .
  '';

  strictDeps = true;

  nativeBuildInputs = [ autoreconfHook pkg-config perl xa ]
    ++ lib.optionals docSupport [ doxygen graphviz ];

  buildInputs = [ libgcrypt libexsid ];

  doCheck = true;
  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;

  nativeCheckInputs = [ unittest-cpp ];
  checkInputs = [ unittest-cpp ];

  enableParallelBuilding = true;

@@ -54,6 +57,13 @@ stdenv.mkDerivation rec {
  ]
  ++ lib.optional doCheck "--enable-tests";

  FONTCONFIG_FILE = lib.optionalString docSupport (makeFontsConf { fontDirectories = [ ]; });

  preBuild = ''
    # Reduce noise from fontconfig during doc building
    export XDG_CACHE_HOME=$TMPDIR
  '';

  postInstall = lib.optionalString docSupport ''
    mkdir -p $doc/share/doc/libsidplayfp
    mv docs/html $doc/share/doc/libsidplayfp/