flake: simplify internal-api-docs definition

Change-Id: Ib2d60f43be0ca1b81308f2e50cf7a8fa27b8f65b
This commit is contained in:
Qyriad 2024-05-07 17:41:02 -06:00
parent 4fbdd9890d
commit 4bce1db1a4

View file

@ -245,23 +245,15 @@
# API docs for Nix's unstable internal C++ interfaces.
internal-api-docs =
let
nixpkgs = nixpkgsFor.x86_64-linux.native;
inherit (nixpkgs) pkgs;
nix = pkgs.callPackage ./package.nix {
inherit versionSuffix officialRelease buildUnreleasedNotes;
inherit (pkgs) build-release-notes;
internalApiDocs = true;
busybox-sandbox-shell = pkgs.busybox-sandbox-shell;
};
withDocs = self.packages.x86_64-linux.default.override { internal-api-docs = true; };
in
nix.overrideAttrs (prev: {
withDocs.overrideAttrs {
# This Hydra job is just for the internal API docs.
# We don't need the build artifacts here.
dontBuild = true;
doCheck = false;
doInstallCheck = false;
});
};
# System tests.
tests = import ./tests/nixos { inherit lib nixpkgs nixpkgsFor; } // {