From 97480d592ad2ac0d7fe828d5659b0791e5c44cc0 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Sat, 11 Apr 2020 17:51:18 +0200 Subject: [PATCH] Another git buildfix --- system/git.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/git.nix b/system/git.nix index 2d3eec83..b888872e 100644 --- a/system/git.nix +++ b/system/git.nix @@ -30,7 +30,7 @@ let git "push" "--all" "-f" mirror deploy <- lookupEnv "GL_OPTION_WEB_DEPLOY" whenJust deploy $ \deploy -> do - (maybe [] ("-A":) -> target) <- lookupEnv "GL_OPTION_WEB_DEPLOY_NIX_TARGET" + (maybe [] (\x -> ["-A",x]) -> target) <- lookupEnv "GL_OPTION_WEB_DEPLOY_NIX_TARGET" (decodeUtf8 -> path) <- pwd |> captureTrim echo ([i|Deploying build to /var/www/#{deploy}|] :: String) bracket (checkout path) (rm "-rf") $ \dir -> withCurrentDirectory dir $ nix-build "-o" ([i|/var/www/#{deploy}|] :: String) target