git.iko.soy/typeable/nixpkgs
on master help sign in
lyx: use qt5's mkDerivation

Fixes the error: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. See #65399

commitb918bb9e5d204fbdb83a4b82c520461cc6cd155c authorMatthew Harm Bekkema <id@mbekkema.name> dateMon 9 Sep 2019, 00:28 (7 years ago) parent6ea6c9d
1 file changed+6−7
pkgs/applications/misc/lyx/default.nix+6−7
pkgs/applications/misc/lyx/default.nix+6−7
@@ -1,8 +1,8 @@
1−{ fetchurl, stdenv, pkgconfig, python, file, bc, fetchpatch
1+{ fetchurl, lib, mkDerivation, pkgconfig, python, file, bc, fetchpatch
22, qtbase, qtsvg, hunspell, makeWrapper #, mythes, boost
33}:
44
5−stdenv.mkDerivation rec {
5+mkDerivation rec {
66 version = "2.3.0";
77 pname = "lyx";
88
@@ -30,10 +30,9 @@ stdenv.mkDerivation rec {
3030 doCheck = true;
3131
3232 # python is run during runtime to do various tasks
33− postFixup = ''
34− wrapProgram "$out/bin/lyx" \
35− --prefix PATH : '${python}/bin'
36− '';
33+ qtWrapperArgs = [
34+ " --prefix PATH : ${python}/bin"
35+ ];
3736
3837 patches = [
3938 (fetchpatch {
@@ -42,7 +41,7 @@ stdenv.mkDerivation rec {
4241 })
4342 ];
4443
45− meta = with stdenv.lib; {
44+ meta = with lib; {
4645 description = "WYSIWYM frontend for LaTeX, DocBook";
4746 homepage = http://www.lyx.org;
4847 license = licenses.gpl2Plus;