diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-15 11:31:39 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-15 13:36:04 +0700 |
commit | 2e34288f0d8cf01eea228c7dbc50af9589b885f3 (patch) | |
tree | 90b3e8c3181614a7a884130ccbee41d34f514cb7 /pkgs/games/factorio | |
parent | 93e5d99592cea45837867ca2a379093aaec3fbe8 (diff) | |
download | nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.tar nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.tar.gz nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.tar.bz2 nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.tar.lz nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.tar.xz nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.tar.zst nixpkgs-2e34288f0d8cf01eea228c7dbc50af9589b885f3.zip |
pkgs/games: stdenv.lib -> lib
Diffstat (limited to 'pkgs/games/factorio')
-rw-r--r-- | pkgs/games/factorio/default.nix | 12 | ||||
-rw-r--r-- | pkgs/games/factorio/mods.nix | 4 | ||||
-rw-r--r-- | pkgs/games/factorio/utils.nix | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/games/factorio/default.nix b/pkgs/games/factorio/default.nix index 4535f31f262..9db8a95746d 100644 --- a/pkgs/games/factorio/default.nix +++ b/pkgs/games/factorio/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, makeWrapper, makeDesktopItem +{ lib, stdenv, fetchurl, makeWrapper, makeDesktopItem , alsaLib, libpulseaudio, libX11, libXcursor, libXinerama, libXrandr, libXi, libGL , libSM, libICE, libXext, factorio-utils , releaseType @@ -13,7 +13,7 @@ assert releaseType == "alpha" let - inherit (stdenv.lib) importJSON; + inherit (lib) importJSON; helpMsg = '' @@ -83,7 +83,7 @@ let if !needsAuth then fetchurl { inherit name url sha256; } else - (stdenv.lib.overrideDerivation + (lib.overrideDerivation (fetchurl { inherit name url sha256; curlOpts = [ @@ -168,8 +168,8 @@ let version 1.0 in mid 2020. ''; homepage = "https://www.factorio.com/"; - license = stdenv.lib.licenses.unfree; - maintainers = with stdenv.lib.maintainers; [ Baughn elitak erictapen priegger lukegb ]; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ Baughn elitak erictapen priegger lukegb ]; platforms = [ "x86_64-linux" ]; }; }; @@ -180,7 +180,7 @@ let buildInputs = [ makeWrapper libpulseaudio ]; - libPath = stdenv.lib.makeLibraryPath [ + libPath = lib.makeLibraryPath [ alsaLib libpulseaudio libX11 diff --git a/pkgs/games/factorio/mods.nix b/pkgs/games/factorio/mods.nix index 5c9b4f0628a..8d9976689cc 100644 --- a/pkgs/games/factorio/mods.nix +++ b/pkgs/games/factorio/mods.nix @@ -2,12 +2,12 @@ # mods. It will eventually be replaced by a nixos-channel that will provide # derivations for most or all of the mods tracked through the official mod # manager site. -{ stdenv, fetchurl +{ lib, stdenv, fetchurl , factorio-utils , allRecommendedMods ? true , allOptionalMods ? false }: -with stdenv.lib; +with lib; let modDrv = factorio-utils.modDrv { inherit allRecommendedMods allOptionalMods; }; in diff --git a/pkgs/games/factorio/utils.nix b/pkgs/games/factorio/utils.nix index 2764592a324..be5b7fd5ecc 100644 --- a/pkgs/games/factorio/utils.nix +++ b/pkgs/games/factorio/utils.nix @@ -1,7 +1,7 @@ # This file provides a top-level function that will be used by both nixpkgs and nixos # to generate mod directories for use at runtime by factorio. -{ stdenv }: -with stdenv.lib; +{ lib, stdenv }: +with lib; { mkModDirDrv = mods: # a list of mod derivations let |