diff options
author | Profpatsch <mail@profpatsch.de> | 2021-02-05 11:44:45 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-02-05 12:27:24 +0100 |
commit | d2793017cad11d290dad64f5122b2d2668e2d467 (patch) | |
tree | a694f2a70c590fab56221301bbfae69c36d21455 /pkgs/games/humblebundle/starbound.nix | |
parent | f0b9d862a5e54fa7f9159636ce5a90ef3360231f (diff) |
treewide: stdenv.lib -> pkgs.lib
Upstream is deprecating `stdenv.lib`, so let’s do the same.
Diffstat (limited to 'pkgs/games/humblebundle/starbound.nix')
-rw-r--r-- | pkgs/games/humblebundle/starbound.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/games/humblebundle/starbound.nix b/pkgs/games/humblebundle/starbound.nix index b8df170f..a94009a1 100644 --- a/pkgs/games/humblebundle/starbound.nix +++ b/pkgs/games/humblebundle/starbound.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchHumbleBundle, unzip, fetchurl, writeText, SDL2, libGLU, libGL +{ stdenv, lib, fetchHumbleBundle, unzip, fetchurl, writeText, SDL2, libGLU, libGL , xorg, makeDesktopItem }: @@ -39,7 +39,7 @@ let mkdir -p "patched/$(dirname "${bin}")" cp -t "patched/$(dirname "${bin}")" "linux/${bin}" chmod +x "patched/$(basename "${bin}")" - ${stdenv.lib.optionalString (attrs.needsBootconfig or false) '' + ${lib.optionalString (attrs.needsBootconfig or false) '' for offset in $( grep -abz '^sbinit\.config''$' "patched/$(basename "${bin}")" \ | cut -d: -f1 -z | xargs -0 @@ -55,7 +55,7 @@ let ''} patchelf \ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - --set-rpath "${stdenv.lib.makeLibraryPath (attrs.deps or [])}" \ + --set-rpath "${lib.makeLibraryPath (attrs.deps or [])}" \ "patched/$(basename "${bin}")" if ldd "patched/$(basename "${bin}")" | grep -F 'not found' \ | grep -v 'libstarbound-preload\.so\|libsteam_api\.so'; then @@ -284,7 +284,7 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ unzip ]; - buildPhase = with stdenv.lib; '' + buildPhase = with lib; '' cc -Wall -shared "${preloaderSource}" -o preload.so -ldl -fPIC \ -DSTARBOUND_ASSET_DIR="\"$assets\"" ${concatStrings (mapAttrsToList patchBinary binaryDeps)} @@ -315,7 +315,7 @@ in stdenv.mkDerivation rec { installPhase = '' install -vsD preload.so "$lib/lib/libstarbound-preload.so" - ${stdenv.lib.concatStrings (stdenv.lib.mapAttrsToList (bin: attrs: let + ${lib.concatStrings (lib.mapAttrsToList (bin: attrs: let basename = builtins.baseNameOf bin; in '' install -vD "patched/${basename}" "$out/bin/${attrs.name or basename}" |