min nix-pakke:)

This commit is contained in:
2026-05-19 08:58:31 +02:00
parent 446dae01fa
commit 19518cea94
2 changed files with 38 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
use nix
+37
View File
@@ -0,0 +1,37 @@
with import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-25.11") { };
mkShellNoCC rec {
packages = [
# Defines a python + set of packages.
(python3.withPackages (
ps: with ps; [
jupyter
ipython
pandas
numpy
matplotlib
scipy
netcdf4
xarray
shapely
# Uncomment the following lines to make them available in the shell.
# Additional packages can be found with: https://search.nixos.org/packages
# pandas
# numpy
# matplotlib
]
))
];
buildInputs = [
stdenv.cc.cc
netcdf
];
PYTHONPATH = "$PWD";
#MPLBACKEND = "Agg";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
# Automatically run jupyter when entering the shell.
# shellHook = "jupyter notebook";
}