anki: replace mplayer with mpv
Mplayer is not available for aarch64.
This commit is contained in:
parent
b7e5fea35e
commit
04585f097f
@ -4,8 +4,9 @@
|
|||||||
, python
|
, python
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, lame
|
, lame
|
||||||
, mplayer
|
, mpv-unwrapped
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, pyqtwebengine
|
, pyqtwebengine
|
||||||
, decorator
|
, decorator
|
||||||
@ -105,11 +106,16 @@ buildPythonApplication rec {
|
|||||||
checkInputs = [ pytest glibcLocales nose ];
|
checkInputs = [ pytest glibcLocales nose ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
||||||
buildInputs = [ lame mplayer libpulseaudio ];
|
buildInputs = [ lame mpv-unwrapped libpulseaudio ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Disable updated version check.
|
# Disable updated version check.
|
||||||
./no-version-check.patch
|
./no-version-check.patch
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-mpv-args.patch";
|
||||||
|
url = "https://sources.debian.org/data/main/a/anki/2.1.15+dfsg-3/debian/patches/fix-mpv-args.patch";
|
||||||
|
sha256 = "1dimnnawk64m5bbdbjrxw5k08q95l728n94cgkrrwxwavmmywaj2";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# Anki does not use setup.py
|
# Anki does not use setup.py
|
||||||
@ -173,7 +179,7 @@ buildPythonApplication rec {
|
|||||||
preFixup = ''
|
preFixup = ''
|
||||||
makeWrapperArgs+=(
|
makeWrapperArgs+=(
|
||||||
"''${qtWrapperArgs[@]}"
|
"''${qtWrapperArgs[@]}"
|
||||||
--prefix PATH ':' "${lame}/bin:${mplayer}/bin"
|
--prefix PATH ':' "${lame}/bin:${mpv-unwrapped}/bin"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -197,7 +203,6 @@ buildPythonApplication rec {
|
|||||||
or even practicing guitar chords!
|
or even practicing guitar chords!
|
||||||
'';
|
'';
|
||||||
license = licenses.agpl3Plus;
|
license = licenses.agpl3Plus;
|
||||||
broken = stdenv.hostPlatform.isAarch64;
|
|
||||||
platforms = platforms.mesaPlatforms;
|
platforms = platforms.mesaPlatforms;
|
||||||
maintainers = with maintainers; [ oxij Profpatsch ];
|
maintainers = with maintainers; [ oxij Profpatsch ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user