docs: Fake repo for CI

This commit is contained in:
Robert Hensing 2019-10-25 01:07:10 +02:00
parent da83692996
commit 4a12286e92

View file

@ -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 = ''