docs: Fake repo for CI
This commit is contained in:
parent
da83692996
commit
4a12286e92
1 changed files with 7 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue