pkgs/games: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 13:36:04 +07:00
parent 93e5d99592
commit 2e34288f0d
159 changed files with 457 additions and 465 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
/* The reusable code, and package attributes, between OpenRA engine packages (engine.nix)
and out-of-tree mod packages (mod.nix).
*/
{ stdenv, makeSetupHook, curl, unzip, dos2unix, pkgconfig, makeWrapper
{ lib, stdenv, makeSetupHook, curl, unzip, dos2unix, pkgconfig, makeWrapper
, lua, mono, dotnetPackages, python
, libGL, freetype, openal, SDL2
, zenity
}:
with stdenv.lib;
with lib;
let
path = makeBinPath ([ mono python ] ++ optional (zenity != null) zenity);
+2 -2
View File
@@ -7,14 +7,14 @@
This package could be seen as providing a set of in-tree mods,
while the `mod.nix` pacakges provide a single out-of-tree mod.
*/
{ stdenv
{ lib, stdenv
, packageAttrs
, patchEngine
, wrapLaunchGame
, engine
}:
with stdenv.lib;
with lib;
stdenv.mkDerivation (recursiveUpdate packageAttrs rec {
name = "${pname}-${version}";
+2 -2
View File
@@ -6,7 +6,7 @@
The engine is relatively small and quick to build, so this is not much of a problem.
Building a mod will result in a wrapper script that starts the mod inside the specified engine.
*/
{ stdenv
{ lib, stdenv
, packageAttrs
, patchEngine
, wrapLaunchGame
@@ -14,7 +14,7 @@
, engine
}:
with stdenv.lib;
with lib;
let
engineSourceName = engine.src.name or "engine";