summary refs log tree commit diff
path: root/nixos/tests/prometheus-exporters.nix
diff options
context:
space:
mode:
authorWilliButz <wbutz@cyberfnord.de>2019-07-17 14:20:39 +0200
committerWilliButz <wbutz@cyberfnord.de>2019-07-22 16:41:10 +0200
commit77ccb1fe6ac002564c848e8c48271f4cafd661a6 (patch)
tree49e975a6ae8481bcf41e5e89da6e83718fb7311a /nixos/tests/prometheus-exporters.nix
parent774221191dcd9614b8316cc00bbd7e4a7604ae2c (diff)
downloadnixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.tar
nixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.tar.gz
nixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.tar.bz2
nixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.tar.lz
nixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.tar.xz
nixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.tar.zst
nixpkgs-77ccb1fe6ac002564c848e8c48271f4cafd661a6.zip
nixos/tests/prometheus-exporters: replace 'with lib;'
Replace 'with lib;' by explicit function imports.
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r--nixos/tests/prometheus-exporters.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index fb01b501821..2286d70be28 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -3,10 +3,11 @@
 , pkgs ? import ../.. { inherit system config; }
 }:
 
-with pkgs.lib;
-with import ../lib/testing.nix { inherit system pkgs; };
-
 let
+  inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest;
+  inherit (pkgs.lib) concatStringsSep maintainers mapAttrs mkMerge
+                     removeSuffix replaceChars singleton splitString;
+
   escape' = str: replaceChars [''"'' "$" "\n"] [''\\\"'' "\\$" ""] str;
 
 /*