python310Packages.miniaudio: pin miniaudio at 0.11.16
The cffi API breaks after this version.
This commit is contained in:
parent
e9fd3f3edb
commit
0e727af772
1 changed files with 12 additions and 1 deletions
|
@ -10,6 +10,17 @@
|
|||
, CoreAudio
|
||||
}:
|
||||
|
||||
let
|
||||
# TODO: recheck after 1.59
|
||||
miniaudio' = miniaudio.overrideAttrs (oldAttrs: rec {
|
||||
version = "0.11.16"; # cffi breakage with 0.11.17
|
||||
src = fetchFromGitHub {
|
||||
inherit (oldAttrs.src) owner repo;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-POe/dYPJ25RKNGIhaLoqxm9JJ08MrTyHVN4NmaGOdwM=";
|
||||
};
|
||||
});
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "miniaudio";
|
||||
version = "1.59";
|
||||
|
@ -27,7 +38,7 @@ buildPythonPackage rec {
|
|||
|
||||
postPatch = ''
|
||||
rm -r miniaudio
|
||||
ln -s ${miniaudio} miniaudio
|
||||
ln -s ${miniaudio'} miniaudio
|
||||
substituteInPlace build_ffi_module.py \
|
||||
--replace "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
|
||||
substituteInPlace miniaudio.c \
|
||||
|
|
Loading…
Reference in a new issue