fix build

This commit is contained in:
陈浩南 2024-07-05 20:25:30 +08:00
parent 0026ff0382
commit 24405876d1
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ inputs:
{
config = inputs.lib.mkIf (builtins.elem "workstation" inputs.config.nixos.packages._packageSets)
{
nixos.packages._packages = with inputs.pkgs.localPackages.vasp; [ intel nvidia vtstscripts ];
nixos.packages._packages = inputs.lib.optionals (inputs.config.nixos.system.nixpkgs.march != null)
(with inputs.pkgs.localPackages.vasp; [ intel nvidia vtstscripts ]);
};
}

View File

@ -29,7 +29,7 @@ inputs:
# math, physics and chemistry
(mathematica.overrideAttrs (prev: { postInstall = prev.postInstall or "" + "ln -s ${src} $out/src"; }))
(quantum-espresso.override { stdenv = gcc14Stdenv; gfortran = gfortran14; })
paraview jmol mpi localPackages.mumax
paraview jmol mpi
# encryption and password management
john crunch hashcat
# container and vm
@ -38,7 +38,7 @@ inputs:
microsoft-edge tor-browser
# news
rssguard newsflash newsboat
];
] ++ inputs.lib.optional (inputs.config.nixos.system.nixpkgs.march != null) localPackages.mumax;
_pythonPackages = [(pythonPackages: with pythonPackages;
[
phonopy tensorflow keras scipy scikit-learn jupyterlab autograd # localPackages.pix2tex