Replace deprecated stdenv.lib references

This commit is contained in:
Ehmry - 2021-02-16 15:49:54 +01:00
parent 2afd2d08cc
commit bf93a9d05e
11 changed files with 19 additions and 61 deletions

View File

@ -134,7 +134,7 @@ in nullPkgs // {
inherit (stdenvAdapters) overrideCC; inherit (stdenvAdapters) overrideCC;
buildLlvmTools = buildPackages.llvmPackages_11.tools; buildLlvmTools = buildPackages.llvmPackages_11.tools;
targetLlvmLibraries = targetPackages.llvmPackages_11.libraries; targetLlvmLibraries = targetPackages.llvmPackages_11.libraries;
} // stdenv.lib.optionalAttrs } // lib.optionalAttrs
(stdenv.hostPlatform.isi686 && buildPackages.stdenv.cc.isGNU) { (stdenv.hostPlatform.isi686 && buildPackages.stdenv.cc.isGNU) {
stdenv = gcc7Stdenv; stdenv = gcc7Stdenv;
}); });

View File

@ -1,40 +0,0 @@
{ stdenv, fetchurl }:
let
rev = "e78c96e5288993aaea3ec44e5c6ee755c668da79";
# Don't use fetchgit as this is needed during Aarch64 bootstrapping
configGuess = fetchurl {
url =
"https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}";
sha256 = "sha256-TSLpYIDGSp1flqCBi2Sgg9IWDV5bcO+Hn2Menv3R6KU=";
};
configSub = fetchurl {
url =
"https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}";
sha256 = "sha256-DkCGDN/DE3phQ1GO/Ua5ZPPtp0Ya93PnW3yfSK8EV9s=";
};
in stdenv.mkDerivation {
pname = "gnu-config";
version = "2020-05-04";
buildCommand = ''
mkdir -p $out
cp ${configGuess} $out/config.guess
cp ${configSub} $out/config.sub
'';
meta = with stdenv.lib; {
description = "Attempt to guess a canonical system name";
homepage = "https://savannah.gnu.org/projects/config";
license = licenses.gpl3;
# In addition to GPLv3:
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.
maintainers = [ maintainers.dezgeg ];
platforms = platforms.all;
};
}

View File

@ -1,4 +1,4 @@
{ stdenv, buildPackages, fetchurl }: { lib, stdenv, buildPackages, fetchurl }:
# WARNING: recursive make ahead # WARNING: recursive make ahead
@ -16,7 +16,7 @@ in stdenv.mkDerivation {
configurePhase = "sh configure.sh --only-tools"; configurePhase = "sh configure.sh --only-tools";
installPhase = "make install-tools DESTDIR=$out"; installPhase = "make install-tools DESTDIR=$out";
meta = with stdenv.lib; { meta = with lib; {
description = "Sandboxed execution environment."; description = "Sandboxed execution environment.";
homepage = "https://github.com/solo5/solo5"; homepage = "https://github.com/solo5/solo5";
license = licenses.isc; license = licenses.isc;

View File

@ -1,6 +1,4 @@
{ lib, stdenv, buildPackages, fetchFromGitHub }:
{ stdenv, buildPackages, fetchFromGitHub }:
let let
ARCH = if stdenv.isx86_32 then ARCH = if stdenv.isx86_32 then
@ -32,7 +30,7 @@ else
preInstall = "export INS_DIR=$out"; preInstall = "export INS_DIR=$out";
meta = with stdenv.lib; meta = with lib;
src.meta // { src.meta // {
description = "Microhypervisor"; description = "Microhypervisor";
homepage = "http://hypervisor.org/"; homepage = "http://hypervisor.org/";

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, tup }: { lib, stdenv, fetchgit, tup }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "block_router"; pname = "block_router";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dm755 {.,$out}/block_router"; installPhase = "install -Dm755 {.,$out}/block_router";
meta = with stdenv.lib; { meta = with lib; {
license = licenses.agpl3; license = licenses.agpl3;
maintainers = [ maintainers.ehmry ]; maintainers = [ maintainers.ehmry ];
}; };

View File

@ -6,7 +6,7 @@
# have not been publicly verified by Genode Labs. # have not been publicly verified by Genode Labs.
# #
{ stdenv, fetchurl, ncurses5, expat, makeWrapper, wrapCC }: { lib, stdenv, fetchurl, ncurses5, expat, makeWrapper, wrapCC }:
let let
cc = stdenv.mkDerivation rec { cc = stdenv.mkDerivation rec {
@ -31,7 +31,7 @@ let
dontStrip = true; dontStrip = true;
dontPatchELF = true; dontPatchELF = true;
libPath = stdenv.lib.makeLibraryPath [ "$out" stdenv.cc.cc expat ncurses5 ]; libPath = lib.makeLibraryPath [ "$out" stdenv.cc.cc expat ncurses5 ];
unpackPhase = '' unpackPhase = ''
mkdir $out mkdir $out

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, tup }: { lib, stdenv, fetchgit, tup }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nic_bus"; pname = "nic_bus";
version = "2.1"; version = "2.1";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dm755 {.,$out}/${pname}"; installPhase = "install -Dm755 {.,$out}/${pname}";
meta = with stdenv.lib; { meta = with lib; {
license = licenses.agpl3; license = licenses.agpl3;
maintainers = [ maintainers.ehmry ]; maintainers = [ maintainers.ehmry ];
}; };

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, tup }: { lib, stdenv, fetchgit, tup }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rtc_dummy"; pname = "rtc_dummy";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dm755 ./rtc-dummy $out/rtc_drv"; installPhase = "install -Dm755 ./rtc-dummy $out/rtc_drv";
meta = with stdenv.lib; { meta = with lib; {
license = licenses.agpl3; license = licenses.agpl3;
maintainers = [ maintainers.ehmry ]; maintainers = [ maintainers.ehmry ];
}; };

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, tup }: { lib, stdenv, fetchgit, tup }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "show_input"; pname = "show_input";
version = "0.2.0"; version = "0.2.0";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dm755 {.,$out}/${pname}"; installPhase = "install -Dm755 {.,$out}/${pname}";
meta = with stdenv.lib; { meta = with lib; {
license = licenses.agpl3; license = licenses.agpl3;
maintainers = [ maintainers.ehmry ]; maintainers = [ maintainers.ehmry ];
}; };

View File

@ -1,4 +1,4 @@
{ stdenv, buildPackages, fetchurl, solo5-tools }: { lib, stdenv, buildPackages, fetchurl, solo5-tools }:
# WARNING: recursive make ahead # WARNING: recursive make ahead
@ -44,7 +44,7 @@ in stdenv.mkDerivation {
runHook postInstall runHook postInstall
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "Sandboxed execution environment."; description = "Sandboxed execution environment.";
homepage = "https://github.com/solo5/solo5"; homepage = "https://github.com/solo5/solo5";
license = licenses.isc; license = licenses.isc;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, tup }: { lib, stdenv, fetchgit, tup }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sotest-producer"; pname = "sotest-producer";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
installPhase = "install -Dm755 {.,$out/bin}/sotest-harness"; installPhase = "install -Dm755 {.,$out/bin}/sotest-harness";
meta = with stdenv.lib; { meta = with lib; {
license = "LicenseRef-Genode.txt"; license = "LicenseRef-Genode.txt";
maintainers = [ maintainers.ehmry ]; maintainers = [ maintainers.ehmry ];
}; };