summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2025-07-22 14:12:49 +0200
committerWolfgang Walther <walther@technowledgy.de>2025-07-24 09:50:39 +0200
commitbfb20b9feada22bfc00ade6d079d95ca71732cf7 (patch)
tree710bfcd5596571bbd2f3f7402c3ba12252b6c6ce
parentpython3Packages.ffmpy: unbreak build with uv-build >=0.8.0 (#426347) (diff)
downloadnixpkgs-bfb20b9feada22bfc00ade6d079d95ca71732cf7.tar.gz
workflows/build: build nixpkgs tarball
This adds a build job for the tarball, which might help uncover eval issues on attributes not normally touched by Eval, aka those added in `pkgs/top-level/packages-config.nix`.
-rw-r--r--.github/workflows/build.yml8
-rw-r--r--ci/default.nix16
2 files changed, 21 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2ca140aee4c8..7c4d9ac48a9b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,8 +27,8 @@ jobs:
include:
- runner: ubuntu-24.04
system: x86_64-linux
- builds: [shell, manual-nixos, lib-tests]
- desc: shell, docs, lib
+ builds: [shell, manual-nixos, lib-tests, tarball]
+ desc: shell, docs, lib, tarball
- runner: ubuntu-24.04-arm
system: aarch64-linux
builds: [shell, manual-nixos, manual-nixpkgs, manual-nixpkgs-tests]
@@ -85,6 +85,10 @@ jobs:
if: contains(matrix.builds, 'lib-tests') && !cancelled()
run: nix-build untrusted/ci -A lib-tests
+ - name: Build tarball
+ if: contains(matrix.builds, 'tarball') && !cancelled()
+ run: nix-build untrusted/ci -A tarball
+
- name: Upload NixOS manual
if: |
contains(matrix.builds, 'manual-nixos') && !cancelled() &&
diff --git a/ci/default.nix b/ci/default.nix
index 68fce29901a0..a33b023a6beb 100644
--- a/ci/default.nix
+++ b/ci/default.nix
@@ -89,7 +89,7 @@ let
};
in
-{
+rec {
inherit pkgs fmt;
requestReviews = pkgs.callPackage ./request-reviews { };
codeownersValidator = pkgs.callPackage ./codeowners-validator { };
@@ -113,4 +113,18 @@ in
minimum = pkgs.callPackage ./parse.nix { nix = pkgs.nixVersions.minimum; };
};
shell = import ../shell.nix { inherit nixpkgs system; };
+ tarball = import ../pkgs/top-level/make-tarball.nix {
+ # Mirrored from top-level release.nix:
+ nixpkgs = {
+ outPath = pkgs.lib.cleanSource ../.;
+ revCount = 1234;
+ shortRev = "abcdef";
+ revision = "0000000000000000000000000000000000000000";
+ };
+ officialRelease = false;
+ inherit pkgs lib-tests;
+ # 2.28 / 2.29 take 9x longer than 2.30 or Lix.
+ # TODO: Switch back to nixVersions.latest
+ nix = pkgs.lix;
+ };
}