From 4bce1db1a455e24e2e39b3a3329d500fc32d9447 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Tue, 7 May 2024 17:41:02 -0600 Subject: [PATCH] flake: simplify internal-api-docs definition Change-Id: Ib2d60f43be0ca1b81308f2e50cf7a8fa27b8f65b --- flake.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index f7d600309..de12b39c8 100644 --- a/flake.nix +++ b/flake.nix @@ -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; } // {