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

This commit is contained in:
Ben Siraphob
2021-01-23 19:26:19 +07:00
parent f6a583eeec
commit c522fec274
534 changed files with 1314 additions and 1314 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, gawk, groff, icon-lang ? null }:
{ lib, stdenv, fetchFromGitHub, gawk, groff, icon-lang ? null }:
let noweb = stdenv.mkDerivation rec {
pname = "noweb";
@@ -13,17 +13,17 @@ let noweb = stdenv.mkDerivation rec {
patches = [ ./no-FAQ.patch ];
nativeBuildInputs = [ groff ] ++ stdenv.lib.optionals (!isNull icon-lang) [ icon-lang ];
nativeBuildInputs = [ groff ] ++ lib.optionals (!isNull icon-lang) [ icon-lang ];
preBuild = ''
mkdir -p "$out/lib/noweb"
cd src
'';
makeFlags = stdenv.lib.optionals (!isNull icon-lang) [
makeFlags = lib.optionals (!isNull icon-lang) [
"LIBSRC=icon"
"ICONC=icont"
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
"CC=clang"
];
@@ -70,7 +70,7 @@ let noweb = stdenv.mkDerivation rec {
tlType = "run";
passthru.pkgs = [ noweb.tex ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A simple, extensible literate-programming tool";
homepage = "https://www.cs.tufts.edu/~nr/noweb";
license = licenses.bsd2;