mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
localPackages.hdf5-nvhpc: limit build
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
buildFHSEnv, writeScript, stdenvNoCC,
|
||||
src,
|
||||
nvhpc, lmod, cmake, gfortran
|
||||
nvhpc, lmod, cmake, gfortran,
|
||||
config, nvhpcArch ? config.nvhpcArch or "px"
|
||||
}:
|
||||
let
|
||||
buildEnv = buildFHSEnv
|
||||
@@ -35,4 +36,5 @@ in stdenvNoCC.mkDerivation
|
||||
${buildEnv}/bin/buildEnv ${buildScript}
|
||||
'';
|
||||
dontInstall = true;
|
||||
requiredSystemFeatures = [ "nvhpcarch-${nvhpcArch}" ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user