toplevel: stdenv.lib -> lib

The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
This commit is contained in:
Profpatsch
2021-01-10 17:44:59 +01:00
parent 329e70e0cd
commit 2497553b23
8 changed files with 83 additions and 81 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ let
callPackage = pkgs.newScope self;
requiredLuaModules = drvs: with stdenv.lib; let
requiredLuaModules = drvs: with lib; let
modules = filter hasLuaModule drvs;
in unique ([lua] ++ modules ++ concatLists (catAttrs "requiredLuaModules" modules));
@@ -123,7 +123,7 @@ with self; {
);
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Lightweight UNIX I/O and POSIX binding for Lua";
homepage = "https://www.gitano.org.uk/luxio/";
license = licenses.mit;
@@ -151,7 +151,7 @@ with self; {
printf "package.path = '$out/lib/lua/${lua.luaversion}/?/init.lua;' .. package.path\nreturn require((...) .. '.init')\n" > $out/lib/lua/${lua.luaversion}/vicious.lua
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A modular widget library for the awesome window manager";
homepage = "https://github.com/Mic92/vicious";
license = licenses.gpl2;