From 17d3eb2c9af719eac3668e7b88d65eca93750b41 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 28 Jan 2019 21:05:56 -0600 Subject: [PATCH] awesome: fixup lua paths, don't add random utilities to PATH Lua path changes needed to fix build, removing PATH clutter while visiting this code since doesn't belong. --- pkgs/applications/window-managers/awesome/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/window-managers/awesome/default.nix b/pkgs/applications/window-managers/awesome/default.nix index b096ec69f908..9791b2c87291 100644 --- a/pkgs/applications/window-managers/awesome/default.nix +++ b/pkgs/applications/window-managers/awesome/default.nix @@ -1,7 +1,6 @@ { stdenv, fetchFromGitHub, luaPackages, cairo, librsvg, cmake, imagemagick, pkgconfig, gdk_pixbuf , xorg, libstartup_notification, libxdg_basedir, libpthreadstubs -, xcb-util-cursor, makeWrapper, pango, gobject-introspection, unclutter -, compton, procps, iproute, coreutils, curl, alsaUtils, findutils, xterm +, xcb-util-cursor, makeWrapper, pango, gobject-introspection , which, dbus, nettools, git, asciidoc, doxygen , xmlto, docbook_xml_dtd_45, docbook_xsl, findXMLCatalogs , libxkbcommon, xcbutilxrm, hicolor-icon-theme @@ -45,7 +44,7 @@ with luaPackages; stdenv.mkDerivation rec { GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0"; LUA_CPATH = "${lgi}/lib/lua/${lua.luaversion}/?.so"; - LUA_PATH = "${lgi}/share/lua/${lua.luaversion}/?.lua;${lgi}/share/lua/${lua.luaversion}/lgi/?.lua"; + LUA_PATH = "?.lua;${lgi}/share/lua/${lua.luaversion}/?.lua;${lgi}/share/lua/${lua.luaversion}/lgi/?.lua"; postInstall = '' wrapProgram $out/bin/awesome \ @@ -53,7 +52,8 @@ with luaPackages; stdenv.mkDerivation rec { --add-flags '--search ${lgi}/lib/lua/${lua.luaversion}' \ --add-flags '--search ${lgi}/share/lua/${lua.luaversion}' \ --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ - --prefix PATH : "${stdenv.lib.makeBinPath [ compton unclutter procps iproute coreutils curl alsaUtils findutils xterm ]}" + --prefix LUA_PATH ';' "${lgi}/share/lua/${lua.luaversion}/?.lua;${lgi}/share/lua/${lua.luaversion}/lgi/?.lua" \ + --prefix LUA_CPATH ';' "${lgi}/lib/lua/${lua.luaversion}/?.so" wrapProgram $out/bin/awesome-client \ --prefix PATH : "${which}/bin"