pkgs/development: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-24 00:15:07 +07:00
parent ec334a1b01
commit 2f78ee7e81
121 changed files with 324 additions and 322 deletions

View File

@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
inherit name src;
pharo-share = import ./share.nix { inherit stdenv fetchurl unzip; };
pharo-share = import ./share.nix { inherit lib stdenv fetchurl unzip; };
hardeningDisable = [ "format" "pic" ];
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
buildInputs = [ bash glibc openssl libGLU libGL freetype
xorg.libX11 xorg.libICE xorg.libSM alsaLib cairo pharo-share ];
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath
LD_LIBRARY_PATH = lib.makeLibraryPath
[ cairo libGLU libGL freetype openssl libuuid alsaLib
xorg.libICE xorg.libSM ];
@@ -89,9 +89,9 @@ stdenv.mkDerivation rec {
license = licenses.mit;
maintainers = [ maintainers.lukego ];
# Pharo VM sources are packaged separately for darwin (OS X)
platforms = stdenv.lib.filter
(system: with stdenv.lib.systems.elaborate { inherit system; };
platforms = lib.filter
(system: with lib.systems.elaborate { inherit system; };
isUnix && !isDarwin)
stdenv.lib.platforms.mesaPlatforms;
lib.platforms.mesaPlatforms;
};
}

View File

@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
else throw "Unsupported platform: only Linux/Darwin x86/x64 are supported.";
# Shared data (for the sources file)
pharo-share = import ./share.nix { inherit stdenv fetchurl unzip; };
pharo-share = import ./share.nix { inherit lib stdenv fetchurl unzip; };
# Note: -fPIC causes the VM to segfault.
hardeningDisable = [ "format" "pic"
@@ -138,7 +138,7 @@ stdenv.mkDerivation rec {
mkdir -p "$out/bin"
# Note: include ELF rpath in LD_LIBRARY_PATH for finding libc.
libs=$out:$(patchelf --print-rpath "$out/pharo"):${stdenv.lib.makeLibraryPath libs}
libs=$out:$(patchelf --print-rpath "$out/pharo"):${lib.makeLibraryPath libs}
# Create the script
cat > "$out/bin/${cmd}" <<EOF

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip }:
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
version = "1.0";
@@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Shared files for Pharo";
homepage = "https://pharo.org";
license = stdenv.lib.licenses.mit;
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, file, makeDesktopItem, cog32, spur32, spur64 ? "none" }:
{ lib, stdenv, file, makeDesktopItem, cog32, spur32, spur64 ? "none" }:
stdenv.mkDerivation rec {
name = "pharo";
@@ -50,13 +50,13 @@ stdenv.mkDerivation rec {
'';
homepage = "http://pharo.org";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.lukego ];
license = lib.licenses.mit;
maintainers = [ lib.maintainers.lukego ];
# Pharo VM sources are packaged separately for darwin (OS X)
platforms = stdenv.lib.filter
(system: with stdenv.lib.systems.elaborate { inherit system; };
platforms = lib.filter
(system: with lib.systems.elaborate { inherit system; };
isUnix && !isDarwin)
stdenv.lib.platforms.mesaPlatforms;
lib.platforms.mesaPlatforms;
};
}