diff options
author | Peter Simons <simons@cryp.to> | 2019-08-09 14:37:35 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2019-08-09 14:41:19 +0200 |
commit | caf200a968b3c4bdb74c08e2d18db7beff4e7589 (patch) | |
tree | 55086578145ec192790b9de968499ba5b6e6823a /pkgs/applications/audio/picard/default.nix | |
parent | fae25242e9b2ab05a7ce6206ea3dab8ca247a5cd (diff) | |
download | nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.tar nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.tar.gz nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.tar.bz2 nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.tar.lz nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.tar.xz nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.tar.zst nixpkgs-caf200a968b3c4bdb74c08e2d18db7beff4e7589.zip |
picard: explicitly wrap the program with 'wrapQtApp'
Fixes https://github.com/NixOS/nixpkgs/issues/65776.
Diffstat (limited to 'pkgs/applications/audio/picard/default.nix')
-rw-r--r-- | pkgs/applications/audio/picard/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/applications/audio/picard/default.nix b/pkgs/applications/audio/picard/default.nix index 1ecb8be09dd..04a62b5d159 100644 --- a/pkgs/applications/audio/picard/default.nix +++ b/pkgs/applications/audio/picard/default.nix @@ -1,4 +1,4 @@ -{ stdenv, python3Packages, fetchFromGitHub, gettext, chromaprint }: +{ stdenv, python3Packages, fetchFromGitHub, gettext, chromaprint, qt5 }: let pythonPackages = python3Packages; @@ -13,7 +13,7 @@ in pythonPackages.buildPythonApplication rec { sha256 = "1armg8vpvnbpk7rrfk9q7nj5gm56rza00ni9qwdyqpxp1xaz6apj"; }; - nativeBuildInputs = [ gettext ]; + nativeBuildInputs = [ gettext qt5.wrapQtAppsHook qt5.qtbase ]; propagatedBuildInputs = with pythonPackages; [ pyqt5 @@ -22,15 +22,16 @@ in pythonPackages.buildPythonApplication rec { discid ]; - installPhase = '' - python setup.py install --prefix="$out" - ''; - prePatch = '' # Pesky unicode punctuation. substituteInPlace setup.cfg --replace "‘" "'" ''; + installPhase = '' + python setup.py install --prefix="$out" + wrapQtApp $out/bin/picard + ''; + meta = with stdenv.lib; { homepage = http://musicbrainz.org/doc/MusicBrainz_Picard; description = "The official MusicBrainz tagger"; |