From 513945a5b77e50acb9231177b34469fc9e1ed451 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Mon, 7 Dec 2020 04:24:18 +0100 Subject: [PATCH] Drop " --- overlays/testing.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlays/testing.nix b/overlays/testing.nix index 4d7ce4e3..f56f0a04 100644 --- a/overlays/testing.nix +++ b/overlays/testing.nix @@ -9,8 +9,8 @@ let haskellBody = name: commandline: '' main = do (configDir:hostname:args) <- getArgs - (decodeUtf8 -> homeManagerChannel) <- nix_instantiate "--eval" "-E" ([i|(import #{configDir}/channels.nix).#{hostname}.home-manager-channel|] :: String) |> captureTrim - (decodeUtf8 -> nixpkgsChannel) <- nix_instantiate "--eval" "-E" ([i|(import #{configDir}/channels.nix).#{hostname}.nixpkgs-channel|] :: String) |> captureTrim + (Text.dropAround ('"' ==) . decodeUtf8 . trim -> homeManagerChannel) <- nix_instantiate "--eval" "-E" ([i|(import #{configDir}/channels.nix).#{hostname}.home-manager-channel|] :: String) |> captureTrim + (Text.dropAround ('"' ==) . decodeUtf8 . trim -> nixpkgsChannel) <- nix_instantiate "--eval" "-E" ([i|(import #{configDir}/channels.nix).#{hostname}.nixpkgs-channel|] :: String) |> captureTrim paths <- aNixPath homeManagerChannel nixpkgsChannel (toText configDir) logFile <- mktemp |> captureTrim let command = (${commandline}) &!> StdOut &> Append logFile