templates/python/flake.nix

20 lines
437 B
Nix
Raw Normal View History

2023-12-06 20:07:52 +01:00
{
description = "A bare python flake";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let pkgs = nixpkgs.legacyPackages.${sys};
python = pkgs.python310.withPackages (ps: with ps; [
matplotlib
ipython
]);
in rec {
devShells.default = python;
}
);
}