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;
|
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
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -19,7 +25,7 @@ in
|
||||||
doc = self.stdenv.mkDerivation {
|
doc = self.stdenv.mkDerivation {
|
||||||
name = "arion-documentation";
|
name = "arion-documentation";
|
||||||
buildInputs = [super.antora];
|
buildInputs = [super.antora];
|
||||||
src = ../.;
|
src = fakeRepo ../.;
|
||||||
HOME = ".";
|
HOME = ".";
|
||||||
buildPhase = "antora antora-playbook";
|
buildPhase = "antora antora-playbook";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue