From d2e583f5ee786c3e3f0077aeed1df59ce39fa467 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 28 May 2019 01:05:03 -0300 Subject: Fix docker-compose config step Add gitMinimal package to baseTasks to allow any derivation to =source .envrc= freely. dockerComposeLint sources it to properly lint the file that will be ran. --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index afbb8d1..c110c7c 100644 --- a/default.nix +++ b/default.nix @@ -14,7 +14,7 @@ let name = "vps-task"; src = rootSrc; phases = "unpackPhase buildPhase"; - buildInputs = [ ]; + buildInputs = [ pkgs.gitMinimal ]; buildPhase = '' echo "ERROR: base task buildPhase not overriden." exit 1 @@ -60,6 +60,7 @@ with pkgs.stdenv; rec { name = "${baseAttrs.name}-docker-compose-lint"; buildInputs = baseAttrs.buildInputs ++ [ docker-compose ]; buildPhase = '' + source .envrc docker-compose config || { echo "Invalid docker-compose.yml file." exit 1 -- cgit v1.2.3