1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-08 02:38:11 +09:00

workflows/manual-nixpkgs: build nixpkgs manual on staging and stable branches

By using the pinned nixpkgs we have for CI, we can lift the restriction
of building the nixpkgs manual only in PRs targeting master.

At the same time, this uses the pinned nixpkgs for the doc/ folder's dev
shell. This allows entering that shell while working on a staging-based
branch and write documentation.

Why should staging be un(der)documented, after all?

Note: The package that is available in nixpkgs as pkgs.nixpkgs-manual
will still be built with the current nixpkgs checkout, not the pinned
version. This is the same that hydra builds.
This commit is contained in:
Wolfgang Walther 2025-05-29 16:32:19 +02:00
parent 2f097cae61
commit ef1077013b
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1
4 changed files with 6 additions and 14 deletions

View file

@ -5,8 +5,6 @@ on:
paths:
- .github/workflows/manual-nixpkgs-v2.yml
pull_request_target:
branches:
- master
paths:
- 'doc/**'
- 'lib/**'
@ -38,4 +36,4 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Building Nixpkgs manual
run: NIX_PATH=nixpkgs=$(pwd)/untrusted nix-build --option restrict-eval true untrusted/ci -A manual-nixpkgs -A manual-nixpkgs-tests
run: nix-build untrusted/ci -A manual-nixpkgs -A manual-nixpkgs-tests

View file

@ -82,8 +82,8 @@ in
# CI jobs
lib-tests = import ../lib/tests/release.nix { inherit pkgs; };
manual-nixos = (import ../nixos/release.nix { }).manual.${system} or null;
manual-nixpkgs = (import ../pkgs/top-level/release.nix { }).manual;
manual-nixpkgs-tests = (import ../pkgs/top-level/release.nix { }).manual.tests;
manual-nixpkgs = (import ../doc { });
manual-nixpkgs-tests = (import ../doc { }).tests;
nixpkgs-vet = pkgs.callPackage ./nixpkgs-vet.nix { };
parse = pkgs.lib.recurseIntoAttrs {
latest = pkgs.callPackage ./parse.nix { nix = pkgs.nixVersions.latest; };

View file

@ -1,6 +1,6 @@
{
pkgs ? (import ./.. { }),
pkgs ? (import ../ci { }).pkgs,
nixpkgs ? { },
}:
pkgs.nixpkgs-manual.override { inherit nixpkgs; }
pkgs.callPackage ./doc-support/package.nix { inherit nixpkgs; }

View file

@ -1,7 +1 @@
let
pkgs = import ../. {
config = { };
overlays = [ ];
};
in
pkgs.nixpkgs-manual.shell
(import ./default.nix { }).shell