Python: MNE-Fix

master
David Crompton 2024-05-10 13:53:29 -04:00
parent 29a13e0149
commit d14c11f044
4 changed files with 17 additions and 2 deletions

View File

@ -35,6 +35,7 @@
config.cudaSupport = true;
};
};
python-overlay = import ./overlays/python.nix;
applyOverlays = overlays: ({...}:{ nixpkgs.overlays = overlays; });
flakes = {...}: {nix.settings.experimental-features = [ "nix-command" "flakes" ];};
in {
@ -43,7 +44,7 @@
specialArgs = attrs;
modules = [
flakes
(applyOverlays [ unfree-overlay unstable-overlay ])
(applyOverlays [ unfree-overlay unstable-overlay python-overlay ])
./machines/kcnhub/configuration.nix
sops-nix.nixosModules.sops
];

View File

@ -200,7 +200,7 @@
# Neural Data Processing Libraries
# Temporarily broken?: https://github.com/NixOS/nixpkgs/issues/259812
# mne-python
mne-python
nibabel
# View niftis!
ipyniivue

View File

@ -0,0 +1,9 @@
final-py: prev-py: {
mne-python = prev-py.mne-python.overridePythonAttrs (old: {
pyproject = true;
format = null;
propagatedBuildInputs = old.propagatedBuildInputs ++ [
final-py.setuptools-scm
];
});
}

5
overlays/python.nix Normal file
View File

@ -0,0 +1,5 @@
final: prev: {
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(
(import ./python-packages.nix)
)];
}