Skip to content

Commit

Permalink
pkgs/development/tools: stdenv.lib -> lib
Browse files Browse the repository at this point in the history
  • Loading branch information
siraben committed Jan 23, 2021
1 parent f6a583e commit c522fec
Show file tree
Hide file tree
Showing 534 changed files with 1,314 additions and 1,314 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/alloy/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, jre, makeWrapper, makeDesktopItem }:
{ lib, stdenv, fetchurl, jre, makeWrapper, makeDesktopItem }:

let generic = { major, version, src }:

Expand Down Expand Up @@ -30,7 +30,7 @@ let generic = { major, version, src }:
cp -r ${desktopItem}/share/applications $out/share
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Language & tool for relational models";
longDescription = ''
Alloy is a language for describing structures and a tool for exploring
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/ammonite/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, jre, nixosTests, writeScript, common-updater-scripts, git
{ lib, stdenv, fetchurl, jre, nixosTests, writeScript, common-updater-scripts, git
, nixfmt, nix, coreutils, gnused, disableRemoteLogging ? true }:

with stdenv.lib;
with lib;

let
repo = "git@github.com:lihaoyi/Ammonite.git";
Expand Down Expand Up @@ -34,7 +34,7 @@ let
#!${stdenv.shell}
set -o errexit
PATH=${
stdenv.lib.makeBinPath [
lib.makeBinPath [
common-updater-scripts
coreutils
git
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/autoflake/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, python3Packages }:
{ lib, stdenv, python3Packages }:

with python3Packages;
buildPythonApplication rec {
Expand All @@ -14,7 +14,7 @@ buildPythonApplication rec {

doCheck = true;

meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/myint/autoflake";
description = "A simple program which removes unused imports and unused variables as reported by pyflakes";
license = licenses.mit;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/bingrep/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, rustPlatform, fetchFromGitHub }:
{ lib, stdenv, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
pname = "bingrep";
Expand All @@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {

cargoSha256 = "sha256-3eGYU5O7HSpawIL/8OVmROCzXfdnoMAnIujjrIp00xg=";

meta = with stdenv.lib; {
meta = with lib; {
description = "Greps through binaries from various OSs and architectures, and colors them";
homepage = "https://github.com/m4b/bingrep";
license = licenses.mit;
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/tools/analysis/cccc/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:

let
name = "cccc";
Expand Down Expand Up @@ -30,8 +30,8 @@ stdenv.mkDerivation {
complexity and metrics proposed by Chidamber&Kemerer and Henry&Kafura.
'';
homepage = "http://cccc.sourceforge.net/";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.linquize ];
license = lib.licenses.gpl2;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.linquize ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/checkstyle/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, jre }:
{ lib, stdenv, fetchurl, makeWrapper, jre }:

stdenv.mkDerivation rec {
version = "8.39";
Expand All @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Checks Java source against a coding standard";
longDescription = ''
checkstyle is a development tool to help programmers write Java code that
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/tools/analysis/clang-analyzer/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, clang, llvmPackages, perl, makeWrapper, python3 }:
{ lib, stdenv, fetchurl, clang, llvmPackages, perl, makeWrapper, python3 }:

stdenv.mkDerivation rec {
pname = "clang-analyzer";
Expand Down Expand Up @@ -27,8 +27,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Clang Static Analyzer";
homepage = "http://clang-analyzer.llvm.org";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/coan/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl }:
{ lib, stdenv, fetchurl, perl }:

stdenv.mkDerivation rec {
version = "6.0.1";
Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
mv -v $out/share/man/man1/coan.1.{1,gz}
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "The C preprocessor chainsaw";
longDescription = ''
A software engineering tool for analysing preprocessor-based
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/codeql/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchzip
, zlib
, xorg
Expand Down Expand Up @@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
ln -s $out/codeql/codeql $out/bin/
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Semantic code analysis engine";
homepage = "https://semmle.com/codeql";
maintainers = [ maintainers.dump_stack ];
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/tools/analysis/cov-build/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, requireFile }:
{ lib, stdenv, requireFile }:

let
message = ''
Expand Down Expand Up @@ -41,8 +41,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Coverity Scan build tools";
homepage = "https://scan.coverity.com";
license = stdenv.lib.licenses.unfreeRedistributable;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
license = lib.licenses.unfreeRedistributable;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}
6 changes: 3 additions & 3 deletions pkgs/development/tools/analysis/coz/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, libelfin
, ncurses
Expand Down Expand Up @@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://github.com/plasma-umass/coz";
description = "Profiler based on casual profiling";
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ zimbatm ];
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ zimbatm ];
};
}
8 changes: 4 additions & 4 deletions pkgs/development/tools/analysis/cppcheck/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45, pcre, withZ3 ? true, z3 }:
{ lib, stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45, pcre, withZ3 ? true, z3 }:

stdenv.mkDerivation rec {
pname = "cppcheck";
Expand All @@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "0mlw0z20qf0g9qrmdmbykzf87wlcgmah8bacmp4mk6dwfzr9g9n3";
};

buildInputs = [ pcre ] ++ stdenv.lib.optionals withZ3 [ z3 ];
buildInputs = [ pcre ] ++ lib.optionals withZ3 [ z3 ];
nativeBuildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ];

makeFlags = [ "PREFIX=$(out)" "FILESDIR=$(out)/cfg" "HAVE_RULES=yes" ]
++ stdenv.lib.optionals withZ3 [ "USE_Z3=yes" "CPPFLAGS=-DNEW_Z3=1" ];
++ lib.optionals withZ3 [ "USE_Z3=yes" "CPPFLAGS=-DNEW_Z3=1" ];

outputs = [ "out" "man" ];

Expand All @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
cp cppcheck.1 $man/share/man/man1/cppcheck.1
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "A static analysis tool for C/C++ code";
longDescription = ''
Check C/C++ code for memory leaks, mismatching allocation-deallocation,
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/egypt/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, perlPackages }:
{ lib, stdenv, fetchurl, perlPackages }:

perlPackages.buildPerlPackage rec {
pname = "egypt";
Expand All @@ -15,7 +15,7 @@ perlPackages.buildPerlPackage rec {

doCheck = true;

meta = with stdenv.lib; {
meta = with lib; {
description = "Tool for making call graphs of C programmes";
longDescription = ''
Egypt is a simple tool for creating call graphs of C programs. It neither
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/analysis/emma/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip}:
{lib, stdenv, fetchurl, unzip}:

stdenv.mkDerivation {
name = "emma-2.0.5312";
Expand All @@ -18,7 +18,7 @@ stdenv.mkDerivation {
meta = {
homepage = "http://emma.sourceforge.net/";
description = "A code coverage tool for Java";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.cpl10;
platforms = lib.platforms.unix;
license = lib.licenses.cpl10;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/evmdis/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage {
pname = "evmdis-unstable";
Expand All @@ -12,7 +12,7 @@ buildGoPackage {
sha256 = "09y4j7ipgv8yd99g3xk3f079w8fqfj7kl1y7ry81ainysn0qlqrg";
};

meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/Arachnid/evmdis";
description = "Ethereum EVM disassembler";
license = [ licenses.asl20 ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/findbugs/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
name = "findbugs-3.0.1";
Expand Down Expand Up @@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
EOF
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "A static analysis tool to find bugs in Java programs automatically";
homepage = "http://findbugs.sourceforge.net/";
maintainers = with maintainers; [ pSub ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/analysis/flow/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocamlPackages, CoreServices }:
{ lib, stdenv, fetchFromGitHub, ocamlPackages, CoreServices }:

stdenv.mkDerivation rec {
pname = "flow";
Expand All @@ -17,9 +17,9 @@ stdenv.mkDerivation rec {
'';

buildInputs = (with ocamlPackages; [ ocaml findlib ocamlbuild dtoa core_kernel sedlex_2 ocaml_lwt lwt_log lwt_ppx ppx_deriving ppx_gen_rec ppx_tools_versioned visitors wtf8 ocaml-migrate-parsetree ])
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
++ lib.optionals stdenv.isDarwin [ CoreServices ];

meta = with stdenv.lib; {
meta = with lib; {
description = "A static type checker for JavaScript";
homepage = "https://flow.org/";
changelog = "https://github.com/facebook/flow/releases/tag/v${version}";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/analysis/frama-c/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ stdenv.mkDerivation rec {
meta = {
description = "An extensible and collaborative platform dedicated to source-code analysis of C software";
homepage = "http://frama-c.com/";
license = stdenv.lib.licenses.lgpl21;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice amiddelk ];
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ thoughtpolice amiddelk ];
platforms = lib.platforms.unix;
};
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {

Expand All @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
cp -ar $src/Documentation/html $out/share/doc/${name}/.
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Automatically generate all types of basic memory management operations and write into trace files";
homepage = "https://github.com/GarCoSim";
maintainers = [ maintainers.cmcdragonkai ];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchgit }:
{ lib, stdenv, fetchgit }:

stdenv.mkDerivation {

Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation {
cp ./traceFileSim "$out/bin"
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Ease the analysis of existing memory management techniques, as well as the prototyping of new memory management techniques";
homepage = "https://github.com/GarCoSim";
maintainers = [ maintainers.cmcdragonkai ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/analysis/hopper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
--replace "Exec=/opt/hopper-${rev}/bin/Hopper" "Exec=$out/bin/hopper"
'';

meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.hopperapp.com/index.html";
description = "A macOS and Linux Disassembler";
license = licenses.unfree;
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/tools/analysis/hotspot/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv,
{ lib, stdenv,
mkDerivation,
cmake,
elfutils,
Expand Down Expand Up @@ -58,8 +58,8 @@ mkDerivation rec {
then displays the result in a graphical way.
'';
homepage = "https://github.com/KDAB/hotspot";
license = with stdenv.lib.licenses; [ gpl2 gpl3 ];
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ nh2 ];
license = with lib.licenses; [ gpl2 gpl3 ];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ nh2 ];
};
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, llvmPackages, python2 }:
{ lib, stdenv, fetchurl, cmake, llvmPackages, python2 }:

stdenv.mkDerivation rec {
pname = "include-what-you-use";
Expand All @@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
--replace "'include-what-you-use'" "'$out/bin/include-what-you-use'"
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Analyze #includes in C/C++ source files with clang";
longDescription = ''
For every symbol (type, function variable, or macro) that you use in
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/jdepend/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ant, jdk, runtimeShell }:
{ lib, stdenv, fetchFromGitHub, ant, jdk, runtimeShell }:

stdenv.mkDerivation rec {
pname = "jdepend";
Expand All @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
chmod a+x $out/bin/jdepend
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Traverses Java class file directories and generates design quality metrics for each Java package";
homepage = "http://www.clarkware.com/software/JDepend.html";
license = licenses.bsd3;
Expand Down

0 comments on commit c522fec

Please sign in to comment.