about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-27 04:49:58 +0100
committerGitHub <noreply@github.com>2023-01-27 04:49:58 +0100
commitac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7 (patch)
tree0af9b2fa59ecc44eb4d18966bb61170043ddf4ac /pkgs/development/compilers
parent5640418357f789d0579e56b2a295691718ad56f7 (diff)
parenta59dda942cbe3d40c1ae424d4d8a6db715cac0d5 (diff)
downloadnixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.tar
nixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.tar.gz
nixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.tar.bz2
nixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.tar.lz
nixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.tar.xz
nixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.tar.zst
nixlib-ac7a109da40bd843a4c5e5d2ba6f69d6b8e145f7.zip
Merge pull request #212812 from Shawn8901/remove_with_lib_3
treewide: remove global with lib; statements in pkgs/development
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/intercal/default.nix3
-rw-r--r--pkgs/development/compilers/scala/2.x.nix4
-rw-r--r--pkgs/development/compilers/sdcc/default.nix6
3 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/development/compilers/intercal/default.nix b/pkgs/development/compilers/intercal/default.nix
index 54641d45bce5..1fde0f320c40 100644
--- a/pkgs/development/compilers/intercal/default.nix
+++ b/pkgs/development/compilers/intercal/default.nix
@@ -3,7 +3,6 @@
 , bison, flex
 , makeWrapper }:
 
-with lib;
 stdenv.mkDerivation rec {
 
   pname = "intercal";
@@ -31,7 +30,7 @@ stdenv.mkDerivation rec {
     wrapProgram $out/bin/ick --suffix PATH ':' ${stdenv.cc}/bin
   '';
 
-  meta = {
+  meta = with lib; {
     description = "The original esoteric programming language";
     longDescription = ''
       INTERCAL, an abbreviation for "Compiler Language With No
diff --git a/pkgs/development/compilers/scala/2.x.nix b/pkgs/development/compilers/scala/2.x.nix
index 601f05a51bb0..7bb69bde677c 100644
--- a/pkgs/development/compilers/scala/2.x.nix
+++ b/pkgs/development/compilers/scala/2.x.nix
@@ -1,8 +1,6 @@
 { stdenv, lib, fetchurl, makeWrapper, jre, gnugrep, coreutils, writeScript
 , common-updater-scripts, git, gnused, nix, nixfmt, majorVersion }:
 
-with lib;
-
 let
   repo = "git@github.com:scala/scala.git";
 
@@ -102,7 +100,7 @@ stdenv.mkDerivation rec {
     '';
   };
 
-  meta = {
+  meta = with lib; {
     description = "A general purpose programming language";
     longDescription = ''
       Scala is a general purpose programming language designed to express
diff --git a/pkgs/development/compilers/sdcc/default.nix b/pkgs/development/compilers/sdcc/default.nix
index 5b7eeb5b943e..584c0e7a6604 100644
--- a/pkgs/development/compilers/sdcc/default.nix
+++ b/pkgs/development/compilers/sdcc/default.nix
@@ -1,11 +1,9 @@
 { lib, stdenv, fetchurl, autoconf, bison, boost, flex, texinfo, zlib, gputils ? null
 , excludePorts ? [] }:
 
-with lib;
-
 let
   # choices: mcs51 z80 z180 r2k r3ka gbz80 tlcs90 ds390 ds400 pic14 pic16 hc08 s08 stm8
-  excludedPorts = excludePorts ++ (optionals (gputils == null) [ "pic14" "pic16" ]);
+  excludedPorts = excludePorts ++ (lib.optionals (gputils == null) [ "pic14" "pic16" ]);
 in
 
 stdenv.mkDerivation rec {
@@ -29,7 +27,7 @@ stdenv.mkDerivation rec {
     fi
   '';
 
-  meta = {
+  meta = with lib; {
     description = "Small Device C Compiler";
     longDescription = ''
       SDCC is a retargettable, optimizing ANSI - C compiler suite that targets