From 4a12286e923d052fbbdf20599404af644cc4fc0d Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 25 Oct 2019 01:07:10 +0200 Subject: [PATCH] docs: Fake repo for CI --- nix/overlay.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/overlay.nix b/nix/overlay.nix index 00ccad6..b058f58 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -5,6 +5,12 @@ let sources = import ./sources.nix; + fakeRepo = src: super.runCommand "source" { inherit src; buildInputs = [super.git]; } '' + cp -r --no-preserve=mode $src $out + git init + cp -r .git $out + ''; + in { @@ -19,7 +25,7 @@ in doc = self.stdenv.mkDerivation { name = "arion-documentation"; buildInputs = [super.antora]; - src = ../.; + src = fakeRepo ../.; HOME = "."; buildPhase = "antora antora-playbook"; installPhase = ''