picard: explicitly wrap the program with 'wrapQtApp'
Fixes https://github.com/NixOS/nixpkgs/issues/65776.
This commit is contained in:
parent
fae25242e9
commit
caf200a968
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, python3Packages, fetchFromGitHub, gettext, chromaprint }:
|
{ stdenv, python3Packages, fetchFromGitHub, gettext, chromaprint, qt5 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pythonPackages = python3Packages;
|
pythonPackages = python3Packages;
|
||||||
@ -13,7 +13,7 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "1armg8vpvnbpk7rrfk9q7nj5gm56rza00ni9qwdyqpxp1xaz6apj";
|
sha256 = "1armg8vpvnbpk7rrfk9q7nj5gm56rza00ni9qwdyqpxp1xaz6apj";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext ];
|
nativeBuildInputs = [ gettext qt5.wrapQtAppsHook qt5.qtbase ];
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
pyqt5
|
pyqt5
|
||||||
@ -22,15 +22,16 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
discid
|
discid
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python setup.py install --prefix="$out"
|
|
||||||
'';
|
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
# Pesky unicode punctuation.
|
# Pesky unicode punctuation.
|
||||||
substituteInPlace setup.cfg --replace "‘" "'"
|
substituteInPlace setup.cfg --replace "‘" "'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
python setup.py install --prefix="$out"
|
||||||
|
wrapQtApp $out/bin/picard
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://musicbrainz.org/doc/MusicBrainz_Picard;
|
homepage = http://musicbrainz.org/doc/MusicBrainz_Picard;
|
||||||
description = "The official MusicBrainz tagger";
|
description = "The official MusicBrainz tagger";
|
||||||
|
Loading…
Reference in New Issue
Block a user