about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust/clippy.nix
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-01-23 10:07:31 +0000
committerGitHub <noreply@github.com>2021-01-23 10:07:31 +0000
commitf6a583eeece936a1d917de67194fec4b6c74cf1f (patch)
tree2720b9f35ccb4d9ae759c965dc8fba39c6199bca /pkgs/development/compilers/rust/clippy.nix
parent3698438873a314899ea8af763aa28577b2794fd5 (diff)
parentacc5f7b18a60bc9b1024e5e1882bf7362e6492e6 (diff)
Merge pull request #110465 from siraben/development-compilers-stdenv-lib
pkgs/development/compilers: stdenv.lib -> lib
Diffstat (limited to 'pkgs/development/compilers/rust/clippy.nix')
-rw-r--r--pkgs/development/compilers/rust/clippy.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/rust/clippy.nix b/pkgs/development/compilers/rust/clippy.nix
index 0546ad9bac1a2..a3597e9febf77 100644
--- a/pkgs/development/compilers/rust/clippy.nix
+++ b/pkgs/development/compilers/rust/clippy.nix
@@ -10,7 +10,7 @@ rustPlatform.buildRustPackage {
   # changes hash of vendor directory otherwise
   dontUpdateAutotoolsGnuConfigScripts = true;
 
-  buildInputs = [ rustc rustc.llvm ] ++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
+  buildInputs = [ rustc rustc.llvm ] ++ lib.optionals stdenv.isDarwin [ Security ];
 
   # fixes: error: the option `Z` is only accepted on the nightly compiler
   RUSTC_BOOTSTRAP = 1;
@@ -20,11 +20,11 @@ rustPlatform.buildRustPackage {
   #   (/private/tmp/nix-build-clippy-1.36.0.drv-0/rustc-1.36.0-src/src/librustc_llvm)
   doCheck = false;
 
-  preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
+  preFixup = lib.optionalString stdenv.isDarwin ''
     install_name_tool -add_rpath "${rustc}/lib" $out/bin/clippy-driver
   '';
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     homepage = "https://rust-lang.github.io/rust-clippy/";
     description = "A bunch of lints to catch common mistakes and improve your Rust code";
     maintainers = with maintainers; [ basvandijk ];