From 77ccb1fe6ac002564c848e8c48271f4cafd661a6 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Wed, 17 Jul 2019 14:20:39 +0200 Subject: [PATCH] nixos/tests/prometheus-exporters: replace 'with lib;' Replace 'with lib;' by explicit function imports. --- nixos/tests/prometheus-exporters.nix | 7 ++++--- 1 file 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; /*