pkgs/development/interpreters: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-23 20:29:03 +07:00
parent f6a583eeec
commit 001c0cbe54
101 changed files with 350 additions and 350 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, readline, gettext, ncurses }:
{ lib, stdenv, fetchurl, readline, gettext, ncurses }:
stdenv.mkDerivation rec {
pname = "gnu-apl";
@@ -12,14 +12,14 @@ stdenv.mkDerivation rec {
buildInputs = [ readline gettext ncurses ];
# Needed with GCC 8
NIX_CFLAGS_COMPILE = with stdenv.lib; toString ((optionals stdenv.cc.isGNU [
NIX_CFLAGS_COMPILE = with lib; toString ((optionals stdenv.cc.isGNU [
"-Wno-error=int-in-bool-context"
"-Wno-error=class-memaccess"
"-Wno-error=restrict"
"-Wno-error=format-truncation"
]) ++ optional stdenv.cc.isClang "-Wno-error=null-dereference");
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
patchPhase = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
'';
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
find $out/share/doc/support-files -name 'Makefile*' -delete
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Free interpreter for the APL programming language";
homepage = "https://www.gnu.org/software/apl/";
license = licenses.gpl3Plus;