libsidplayfp: fix tests on x86_64-darwin

This commit is contained in:
OPNA2608 2021-12-10 14:17:56 +01:00
parent 6e69e537ff
commit 875ea5d71b

View file

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, nix-update-script
, autoreconfHook
, pkg-config
@ -26,6 +27,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Cu5mZzsqAO4X4Y8QAn851zIFPVPwxj5pB+jvA62L108=";
};
patches = [
# Fixes test failure on x86_64-darwin
# Drop when fix for https://github.com/libsidplayfp/libsidplayfp/issues/39 in a release (>2.3.1)
(fetchpatch {
url = "https://github.com/libsidplayfp/libsidplayfp/commit/337020a91caa0113de4f4374e0dc770e4056d2c7.patch";
sha256 = "0sd7bqic8k945f05d8sk9mshf5d90ykd7f5p6m0n6v3jjhpwmqlq";
})
];
postPatch = ''
patchShebangs .
'';