forked from lix-project/lix
package: migrate internal-api-docs
Change-Id: I344d73a412c2c6e4bb2eb14bd4859056324f1ba7
This commit is contained in:
parent
e14b56943d
commit
2fe0b373e9
1 changed files with 35 additions and 13 deletions
48
flake.nix
48
flake.nix
|
@ -422,31 +422,53 @@
|
||||||
dockerImage = lib.genAttrs linux64BitSystems (system: self.packages.${system}.dockerImage);
|
dockerImage = lib.genAttrs linux64BitSystems (system: self.packages.${system}.dockerImage);
|
||||||
|
|
||||||
# API docs for Nix's unstable internal C++ interfaces.
|
# API docs for Nix's unstable internal C++ interfaces.
|
||||||
internal-api-docs =
|
internal-api-docs = let
|
||||||
with nixpkgsFor.x86_64-linux.native;
|
nixpkgs = nixpkgsFor.x86_64-linux.native;
|
||||||
with commonDeps { inherit pkgs; };
|
inherit (nixpkgs) pkgs;
|
||||||
|
comDeps = commonDeps { inherit pkgs; };
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
nix = nixpkgs.pkgs.callPackage ./package.nix {
|
||||||
|
inherit versionSuffix fileset officialRelease buildUnreleasedNotes;
|
||||||
|
inherit (comDeps) changelog-d;
|
||||||
|
boehmgc = comDeps.boehmgc-nix;
|
||||||
|
busybox-sandbox-shell = comDeps.sh;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
nix.overrideAttrs (prev: {
|
||||||
pname = "nix-internal-api-docs";
|
pname = "nix-internal-api-docs";
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = nixSrc;
|
outputs = [ "out" ];
|
||||||
|
separateDebugInfo = false;
|
||||||
|
|
||||||
configureFlags = testConfigureFlags ++ internalApiDocsConfigureFlags;
|
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.doxygen ];
|
||||||
|
|
||||||
nativeBuildInputs = nativeBuildDeps;
|
# Depropagate the build inputs for the docs build.
|
||||||
buildInputs = buildDeps ++ propagatedDeps
|
propagatedBuildInputs = [ ];
|
||||||
++ awsDeps ++ checkDeps ++ internalApiDocsDeps;
|
buildInputs = prev.buildInputs ++ comDeps.internalApiDocsDeps ++ [
|
||||||
|
pkgs.gtest
|
||||||
|
pkgs.rapidcheck
|
||||||
|
] ++ prev.propagatedBuildInputs;
|
||||||
|
|
||||||
dontBuild = true;
|
configureFlags = prev.configureFlags ++ [
|
||||||
|
"--enable-internal-api-docs"
|
||||||
|
"RAPIDCHECK_HEADERS=${lib.getDev pkgs.rapidcheck}/extras/gtest/include"
|
||||||
|
];
|
||||||
|
|
||||||
installTargets = [ "internal-api-html" ];
|
installTargets = [ "internal-api-html" ];
|
||||||
|
|
||||||
|
# Convince the package.nix logic that we're building,
|
||||||
|
# but don't actually run the build phase.
|
||||||
|
env.dontBuild = true;
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
doInstallCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
echo "doc internal-api-docs $out/share/doc/nix/internal-api/html" >> $out/nix-support/hydra-build-products
|
echo "doc internal-api-docs $out/share/doc/nix/internal-api/html" > $out/nix-support/hydra-build-products
|
||||||
|
rm $out/lib -rf
|
||||||
'';
|
'';
|
||||||
};
|
});
|
||||||
|
|
||||||
# System tests.
|
# System tests.
|
||||||
tests = import ./tests/nixos { inherit lib nixpkgs nixpkgsFor; } // {
|
tests = import ./tests/nixos { inherit lib nixpkgs nixpkgsFor; } // {
|
||||||
|
|
Loading…
Reference in a new issue