libsidplayfp: 2.1.1 -> 2.2.0

This commit is contained in:
OPNA2608 2021-06-16 10:53:13 +02:00 committed by Raphael Megzari
parent dffffdc912
commit cfd190abcf

View file

@ -1,7 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, nix-update-script
, autoreconfHook
, pkg-config
, perl
@ -16,29 +16,16 @@
stdenv.mkDerivation rec {
pname = "libsidplayfp";
version = "2.1.1";
version = "2.2.0";
src = fetchFromGitHub {
owner = "libsidplayfp";
repo = "libsidplayfp";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0487gap2b0ypikyra74lk1qwqwr0vncldamk5xb1db2x97v504fd";
sha256 = "sha256-lDM4nJozZF8Rt+XWnM41hBAYatZVsmvvQajgHLI9uy0=";
};
# https://github.com/libsidplayfp/libsidplayfp/issues/13
# Remove on next version bump
patches = [
(fetchpatch {
url = "https://github.com/libsidplayfp/libsidplayfp/commit/84f5498f5653261ed84328e1b5676c31e3ba9e6e.patch";
sha256 = "1vysbl4fkdzm11k40msng2ag6i6mb6z9jsw32vyj9calcfha5957";
})
(fetchpatch {
url = "https://github.com/libsidplayfp/libsidplayfp/commit/c1a1b732cc2e791d910522d58f47c6d094493c6d.patch";
sha256 = "1d3sgdly0q9dysgkx5afxbwfas6p0m8n3lw1hmj4n6wm3j9sdz4g";
})
];
postPatch = ''
patchShebangs .
'';
@ -72,6 +59,12 @@ stdenv.mkDerivation rec {
mv docs/html $doc/share/doc/libsidplayfp/
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
description = "A library to play Commodore 64 music derived from libsidplay2";
longDescription = ''