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

@@ -40,6 +40,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.antlr.org/";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ stdenv.lib.maintainers.farlion ];
maintainers = [ lib.maintainers.farlion ];
};
}

View File

@@ -19,8 +19,8 @@ let
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ cmake ninja pkg-config ];
buildInputs = stdenv.lib.optional stdenv.isLinux libuuid
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreFoundation;
buildInputs = lib.optional stdenv.isLinux libuuid
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreFoundation;
postUnpack = ''
export sourceRoot=$sourceRoot/runtime/Cpp

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, m4, perl, help2man }:
{ lib, stdenv, fetchurl, m4, perl, help2man }:
# Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "1qkp2rfi5njyp5c5avajab00aj74pkmkgzkvshv4p2ydkhswgazv";
};
nativeBuildInputs = [ m4 perl ] ++ stdenv.lib.optional stdenv.isSunOS help2man;
nativeBuildInputs = [ m4 perl ] ++ lib.optional stdenv.isSunOS help2man;
propagatedBuildInputs = [ m4 ];
doCheck = false; # fails
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://www.gnu.org/software/bison/";
description = "Yacc-compatible parser generator";
license = stdenv.lib.licenses.gpl3Plus;
license = lib.licenses.gpl3Plus;
longDescription = ''
Bison is a general-purpose parser generator that converts an
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
to use Bison.
'';
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
passthru = { glrSupport = true; };

View File

@@ -16,7 +16,7 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ m4 ];
preConfigure = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
preConfigure = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation {
postPatch = ''
patchShebangs tests
'' + stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
'' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
substituteInPlace Makefile.in --replace "tests" " ";
'';
@@ -18,12 +18,12 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ m4 ];
preConfigure = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
preConfigure = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
postConfigure = stdenv.lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
postConfigure = lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
sed -i Makefile -e 's/-no-undefined//;'
'';

View File

@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs tests
'' + stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
'' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace Makefile.in --replace "tests" " "
substituteInPlace doc/Makefile.am --replace 'flex.1: $(top_srcdir)/configure.ac' 'flex.1: '
@@ -33,12 +33,12 @@ stdenv.mkDerivation rec {
buildInputs = [ bison ];
propagatedBuildInputs = [ m4 ];
preConfigure = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
preConfigure = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
postConfigure = stdenv.lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
postConfigure = lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
sed -i Makefile -e 's/-no-undefined//;'
'';

View File

@@ -13,15 +13,15 @@ let
inherit sha256;
};
buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript tex ];
buildInputs = lib.optional build-manual [ transfig ghostscript tex ];
preConfigure = stdenv.lib.optional build-manual ''
preConfigure = lib.optional build-manual ''
sed -i "s/build_manual=no/build_manual=yes/g" DIST
'';
configureFlags = [ "--with-colm=${colm}" ];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-std=gnu++98";
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu++98";
doCheck = true;
@@ -40,12 +40,12 @@ in
ragelStable = generic {
version = "6.10";
sha256 = "0gvcsl62gh6sg73nwaxav4a5ja23zcnyxncdcdnqa2yjcpdnw5az";
license = stdenv.lib.licenses.gpl2;
license = lib.licenses.gpl2;
};
ragelDev = generic {
version = "7.0.0.12";
sha256 = "0x3si355lv6q051lgpg8bpclpiq5brpri5lv3p8kk2qhzfbyz69r";
license = stdenv.lib.licenses.mit;
license = lib.licenses.mit;
};
}