devices.wlin: use static chn-bsub

This commit is contained in:
2026-01-05 16:06:55 +08:00
parent 2532d3cf70
commit 3c37a9288c
2 changed files with 2 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ let
nixpkgs = { march = "haswell"; nixRoot = "/data/gpfs01/wlin/.nix"; nixos = false; }; nixpkgs = { march = "haswell"; nixRoot = "/data/gpfs01/wlin/.nix"; nixos = false; };
}); });
python = pkgs.python3.withPackages (ps: with ps; [ phonopy ]); python = pkgs.python3.withPackages (ps: with ps; [ phonopy ]);
chn-bsub = pkgs.localPackages.chn-bsub.override chn-bsub = pkgs.pkgsStatic.localPackages.chn-bsub.override
(prev: { bsubConfig = builtins.toFile "bsub.yaml" (builtins.toJSON (import ./bsub.nix)); }); (prev: { bsubConfig = builtins.toFile "bsub.yaml" (builtins.toJSON (import ./bsub.nix)); });
wlin = pkgs.symlinkJoin wlin = pkgs.symlinkJoin
{ {

View File

@@ -78,10 +78,7 @@ in platformConfig //
configureFlags = prev.configureFlags or [] ++ [ "--with-lsf" ]; configureFlags = prev.configureFlags or [] ++ [ "--with-lsf" ];
buildInputs = prev.buildInputs or [] ++ [ final.localPackages.lsf final.libnsl ]; buildInputs = prev.buildInputs or [] ++ [ final.localPackages.lsf final.libnsl ];
}); });
pkgsStatic = prev.pkgsStatic.overrideScope (final: prev: cpptrace = prev.cpptrace.overrideAttrs (prev: { doCheck = !final.stdenv.hostPlatform.isStatic; });
{
cpptrace = prev.cpptrace.overrideAttrs (prev: { doCheck = false; });
});
} }
// ( // (
let let