-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix-flake: Add documentation as flake output
Signed-off-by: Sarah Renkhoff <[email protected]>
- Loading branch information
1 parent
eee8d4a
commit 78cdbec
Showing
3 changed files
with
78 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ lib | ||
, stdenv | ||
, west2nixHook | ||
, pythonEnv | ||
, cmake | ||
, ninja | ||
, doxygen | ||
, mscgen | ||
, graphviz | ||
, git | ||
, zephyr | ||
, bridle | ||
}: | ||
|
||
stdenv.mkDerivation { | ||
|
||
name = "bridle-doc"; | ||
src = bridle; | ||
unpackPhase = '' | ||
cp -r ${bridle} bridle | ||
chmod +w -R bridle | ||
cd bridle | ||
git init | ||
git config user.email "[email protected]" | ||
git config user.name "Foo" | ||
git checkout -b fake-branch | ||
git add -A | ||
git commit -m "Fake Commnit" | ||
cd .. | ||
''; | ||
|
||
nativeBuildInputs = [ | ||
west2nixHook | ||
pythonEnv | ||
cmake | ||
ninja | ||
doxygen | ||
mscgen | ||
graphviz | ||
git | ||
]; | ||
|
||
dontUseCmakeConfigure = true; | ||
|
||
CMAKE_PREFIX_PATH = "/build/bridle/share/bridle-package:/build/zephyr/share/zephyr-package"; | ||
|
||
buildPhase = '' | ||
cd /build | ||
chmod +w -R ./* | ||
west build --cmake-only -b none -d build bridle/doc | ||
west build -t zephyr-doxygen -b none -d build | ||
west build -t bridle-doxygen -b none -d build | ||
west build -t build-all -b none -d build | ||
''; | ||
|
||
installPhase = '' | ||
mkdir $out | ||
cp -r build/html $out/ | ||
''; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters