From 03dbf4a74bfa5affff4185cef4335a75ffda97b6 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 7 Sep 2025 18:41:34 +0200 Subject: [PATCH] Disable nixpkgsLibTests temporarily Several nixpkgs bumps up to https://github.com/NixOS/nixpkgs/pull/434761 will be required to fix them. Disable the tests temporarily to avoid having to squash all the backports, which would lose history. Change-Id: I6a6a6964029a3442c4691e74a52923e3f59d6448 --- flake.nix | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index 662469479..0703590b2 100644 --- a/flake.nix +++ b/flake.nix @@ -337,24 +337,26 @@ mkdir $out ''; - nixpkgsLibTests = forAllSystems ( - system: - let - inherit (self.packages.${system}) nix; - pkgs = nixpkgsFor.${system}.native; - testWithNix = import (nixpkgs + "/lib/tests/test-with-nix.nix") { inherit pkgs lib nix; }; - in - pkgs.symlinkJoin { - name = "nixpkgs-lib-tests"; - paths = - [ testWithNix ] - # FIXME: This is disabled on darwin due to a nixpkgs bug https://github.com/NixOS/nixpkgs/issues/319147 - # After that is fixed, it should be restored to use lib/tests/release.nix as before, rather than this reimplementation. - ++ lib.optionals pkgs.stdenv.isLinux [ - (import (nixpkgs + "/pkgs/test/release") { inherit pkgs lib nix; }) - ]; - } - ); + /* + nixpkgsLibTests = forAllSystems ( + system: + let + inherit (self.packages.${system}) nix; + pkgs = nixpkgsFor.${system}.native; + testWithNix = import (nixpkgs + "/lib/tests/test-with-nix.nix") { inherit pkgs lib nix; }; + in + pkgs.symlinkJoin { + name = "nixpkgs-lib-tests"; + paths = + [ testWithNix ] + # FIXME: This is disabled on darwin due to a nixpkgs bug https://github.com/NixOS/nixpkgs/issues/319147 + # After that is fixed, it should be restored to use lib/tests/release.nix as before, rather than this reimplementation. + ++ lib.optionals pkgs.stdenv.isLinux [ + (import (nixpkgs + "/pkgs/test/release") { inherit pkgs lib nix; }) + ]; + } + ); + */ }; pre-commit = forAvailableSystems ( @@ -403,7 +405,7 @@ binaryTarball = self.hydraJobs.binaryTarball.${system}; perlBindings = self.hydraJobs.perlBindings.${system}; - nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system}; + # nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system}; rl-next = self.hydraJobs.rl-next.${system}.user; # Will be empty attr set on i686-linux, and filtered out by forAvailableSystems. pre-commit = self.hydraJobs.pre-commit.${system};