We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce087f5 commit 4b6cab7Copy full SHA for 4b6cab7
2 files changed
generate_doxygen.nix
@@ -0,0 +1,29 @@
1
+{ pkgs ? import <nixpkgs> {} }:
2
+
3
+pkgs.stdenv.mkDerivation {
4
+ name = "generate-doxygen-doc";
5
+ buildInputs = [ pkgs.doxygen pkgs.graphviz ];
6
7
+ src = ./include;
8
9
+ buildPhase = ''
10
+ # Create a basic Doxygen configuration file if not present
11
+ if [ ! -f Doxyfile ]; then
12
+ doxygen -g Doxyfile
13
+ fi
14
15
+ # Customize the Doxyfile for better output
16
+ sed -i "s|^OUTPUT_DIRECTORY.*|OUTPUT_DIRECTORY = doxygen_output|" Doxyfile
17
+ sed -i "s|^GENERATE_HTML.*NO|GENERATE_HTML = YES|" Doxyfile
18
+ sed -i "s|^GENERATE_LATEX.*YES|GENERATE_LATEX = NO|" Doxyfile
19
+ sed -i "s|^EXTRACT_ALL.*NO|EXTRACT_ALL = YES|" Doxyfile
20
21
+ # Run Doxygen
22
+ doxygen Doxyfile
23
+ '';
24
25
+ installPhase = ''
26
+ mkdir -p $out
27
+ cp -r doxygen_output $out/
28
29
+}
0 commit comments