manuskript: fix build and use wrapQtApp

This commit is contained in:
Fabian Möller 2019-09-12 12:23:50 +02:00
parent 6759d15465
commit cd67dd52d2
No known key found for this signature in database
GPG Key ID: 70B29D65DD8A7E31
2 changed files with 10 additions and 2 deletions

View File

@ -1,9 +1,11 @@
{ stdenv, zlib, fetchFromGitHub, python3Packages }:
{ stdenv, zlib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
python3Packages.buildPythonApplication rec {
pname = "manuskript";
version = "0.9.0";
format = "other";
src = fetchFromGitHub {
repo = pname;
owner = "olivierkes";
@ -11,6 +13,8 @@ python3Packages.buildPythonApplication rec {
sha256 = "13y1s0kba1ib6g977n7h920kyr7abdw03kpal512m7iwa9g2kdw8";
};
nativeBuildInputs = [ wrapQtAppsHook ];
propagatedBuildInputs = [
python3Packages.pyqt5
python3Packages.lxml
@ -30,6 +34,10 @@ python3Packages.buildPythonApplication rec {
cp -r sample-projects/ $out/share/${pname}
'';
postFixup = ''
wrapQtApp $out/bin/manuskript
'';
doCheck = false;
meta = {

View File

@ -18453,7 +18453,7 @@ in
m32edit = callPackage ../applications/audio/midas/m32edit.nix {};
manuskript = callPackage ../applications/editors/manuskript { };
manuskript = libsForQt5.callPackage ../applications/editors/manuskript { };
manul = callPackage ../development/tools/manul { };