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

View File

@ -200,7 +200,7 @@
# Neural Data Processing Libraries # Neural Data Processing Libraries
# Temporarily broken?: https://github.com/NixOS/nixpkgs/issues/259812 # Temporarily broken?: https://github.com/NixOS/nixpkgs/issues/259812
# mne-python mne-python
nibabel nibabel
# View niftis! # View niftis!
ipyniivue 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)
)];
}