about summary refs log tree commit diff
path: root/pkgs/applications/editors/texmaker
diff options
context:
space:
mode:
authorChristoph Ruegge <c.ruegge@math.uni-goettingen.de>2019-10-22 17:27:47 +0200
committerChristoph Ruegge <c.ruegge@math.uni-goettingen.de>2019-10-22 17:27:47 +0200
commit97f734a4f15fba8f962b3808a94b5979db46d114 (patch)
treeb8255f88ac89110887438963577bf5cadc6e7e57 /pkgs/applications/editors/texmaker
parentadf81192c6e15d80c803c238cfe4a7fe916938df (diff)
texmaker: avoid shell expansion when setting qmakeFlags
Diffstat (limited to 'pkgs/applications/editors/texmaker')
-rw-r--r--pkgs/applications/editors/texmaker/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/editors/texmaker/default.nix b/pkgs/applications/editors/texmaker/default.nix
index a4bc4dc03215a..71043cb78fe13 100644
--- a/pkgs/applications/editors/texmaker/default.nix
+++ b/pkgs/applications/editors/texmaker/default.nix
@@ -13,10 +13,11 @@ mkDerivation rec {
   nativeBuildInputs = [ pkgconfig poppler qmake ];
   NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler";
 
-  preConfigure = ''
-    qmakeFlags="$qmakeFlags DESKTOPDIR=$out/share/applications ICONDIR=$out/share/pixmaps METAINFODIR=$out/share/metainfo"
-  '';
-
+  qmakeFlags = [
+    "DESKTOPDIR=${placeholder "out"}/share/applications"
+    "ICONDIR=${placeholder "out"}/share/pixmaps"
+    "METAINFODIR=${placeholder "out"}/share/metainfo"
+  ];
 
   enableParallelBuilding = true;