commit
8d45a93a96
1 changed files with 15 additions and 10 deletions
|
@ -10,21 +10,22 @@
|
|||
|
||||
let
|
||||
pythonPackages = python3Packages;
|
||||
pyqt5 = if enablePlayback then
|
||||
pythonPackages.pyqt5_with_qtmultimedia
|
||||
else
|
||||
pythonPackages.pyqt5
|
||||
pyqt5 =
|
||||
if enablePlayback then
|
||||
pythonPackages.pyqt5_with_qtmultimedia
|
||||
else
|
||||
pythonPackages.pyqt5
|
||||
;
|
||||
in
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
pname = "picard";
|
||||
version = "2.8.5";
|
||||
version = "2.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "metabrainz";
|
||||
repo = pname;
|
||||
repo = "picard";
|
||||
rev = "refs/tags/release-${version}";
|
||||
sha256 = "sha256-ukqlAXGaqX89U77cM9Ux0RYquT31Ho8ri1Ue7S3+MwQ=";
|
||||
hash = "sha256-ultpLz4u2wBxoL4YbNeZ4Z4NEXBvqpxJ8mzFeGQTt4A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -37,6 +38,7 @@ pythonPackages.buildPythonApplication rec {
|
|||
gst_all_1.gst-vaapi
|
||||
gst_all_1.gstreamer
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qt5.qtbase
|
||||
qt5.qtwayland
|
||||
|
@ -56,20 +58,23 @@ pythonPackages.buildPythonApplication rec {
|
|||
pyyaml
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# In order to spare double wrapping, we use:
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
''
|
||||
+ lib.optionalString (pyqt5.multimediaEnabled) ''
|
||||
makeWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
''
|
||||
;
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://picard.musicbrainz.org/";
|
||||
changelog = "https://picard.musicbrainz.org/changelog/";
|
||||
description = "The official MusicBrainz tagger";
|
||||
maintainers = with maintainers; [ ehmry ];
|
||||
maintainers = with maintainers; [ ehmry paveloom ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue