Skip to content

Commit

Permalink
fix: improve doc
Browse files Browse the repository at this point in the history
- remove forgotten gitmodule
- improve `nix build .#doc`
  • Loading branch information
drawbu committed Mar 22, 2024
1 parent acebd2b commit f0ec571
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion doc/doxygen-awesome-css
Submodule doxygen-awesome-css deleted from 5b27b3
17 changes: 9 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
devShells.default = pkgs.mkShell {
packages =
(with pkgs; [
texliveFull
doxygen_gui

criterion
gtest
Expand Down Expand Up @@ -45,16 +45,17 @@
doc = pkgs.stdenv.mkDerivation {
name = "doc";
src = ./.;
buildInputs = with pkgs; [doxygen_gui];
buildInputs =
packages.arcade.nativeBuildInputs
++ (with pkgs; [doxygen texliveFull]);

buildPhase = ''
doxygen
cmake .
make doc
'';
installPhase = ''
mkdir -p $out
cp -r doc/html $out
mkdir -p $out/usr/share
cp -r doc/man $out/usr/share
mkdir -p $out/var/www
cp -r doc/html $out/var/www
'';
};
};
Expand Down

0 comments on commit f0ec571

Please sign in to comment.