summary refs log tree commit diff
path: root/pkgs/applications/misc/lyx/default.nix
diff options
context:
space:
mode:
authorMatthew Harm Bekkema <id@mbekkema.name>2019-09-09 00:28:24 +1000
committerworldofpeace <worldofpeace@protonmail.ch>2019-09-12 13:05:48 -0400
commitb918bb9e5d204fbdb83a4b82c520461cc6cd155c (patch)
treeeb65c4618b64224e34adc6703e21d08036f7fee4 /pkgs/applications/misc/lyx/default.nix
parent6ea6c9d9f2e1721e4f5d801da0cc1556d9a449d7 (diff)
downloadnixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.tar
nixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.tar.gz
nixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.tar.bz2
nixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.tar.lz
nixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.tar.xz
nixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.tar.zst
nixpkgs-b918bb9e5d204fbdb83a4b82c520461cc6cd155c.zip
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
Diffstat (limited to 'pkgs/applications/misc/lyx/default.nix')
-rw-r--r--pkgs/applications/misc/lyx/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/applications/misc/lyx/default.nix b/pkgs/applications/misc/lyx/default.nix
index 744d124f84d..f7964e4e5c6 100644
--- a/pkgs/applications/misc/lyx/default.nix
+++ b/pkgs/applications/misc/lyx/default.nix
@@ -1,8 +1,8 @@
-{ fetchurl, stdenv, pkgconfig, python, file, bc, fetchpatch
+{ fetchurl, lib, mkDerivation, pkgconfig, python, file, bc, fetchpatch
 , qtbase, qtsvg, hunspell, makeWrapper #, mythes, boost
 }:
 
-stdenv.mkDerivation rec {
+mkDerivation rec {
   version = "2.3.0";
   pname = "lyx";
 
@@ -30,10 +30,9 @@ stdenv.mkDerivation rec {
   doCheck = true;
 
   # python is run during runtime to do various tasks
-  postFixup = ''
-    wrapProgram "$out/bin/lyx" \
-      --prefix PATH : '${python}/bin'
-  '';
+  qtWrapperArgs = [
+    " --prefix PATH : ${python}/bin"
+  ];
 
   patches = [
     (fetchpatch {
@@ -42,7 +41,7 @@ stdenv.mkDerivation rec {
     })
   ];
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "WYSIWYM frontend for LaTeX, DocBook";
     homepage = http://www.lyx.org;
     license = licenses.gpl2Plus;