From 863a37b6d40b375b7def2ce3a6032c7a59a594e8 Mon Sep 17 00:00:00 2001 From: qbisi Date: Tue, 23 Jun 2026 09:36:35 +0800 Subject: [PATCH] petsc: add comments for installCheckFlags --- pkgs/by-name/pe/petsc/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/pe/petsc/package.nix b/pkgs/by-name/pe/petsc/package.nix index 8df93734e438..a8792cfaf19a 100644 --- a/pkgs/by-name/pe/petsc/package.nix +++ b/pkgs/by-name/pe/petsc/package.nix @@ -231,6 +231,10 @@ stdenv.mkDerivation (finalAttrs: { # the library is installed and available. doInstallCheck = true; installCheckTarget = "check_install"; + # check_install is defined in PETSc's top-level makefile. Select it directly + # instead of the default GNUmakefile wrapper, then check the installed prefix + # by pointing PETSC_DIR at $out. PETSC_ARCH must be empty for prefix installs, + # where lib/petsc/conf is not nested below an architecture-specific build dir. installCheckFlags = [ "-f" "makefile"