flakes/python/native/flake.nix

42 lines
991 B
Nix
Raw Normal View History

2024-02-16 08:51:04 +01:00
{
description = "Python flake with native packages";
2024-03-24 11:54:10 +01:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
2024-02-16 08:51:04 +01:00
2024-03-24 11:54:10 +01:00
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils}:
2024-02-16 08:51:04 +01:00
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
2024-03-24 11:54:10 +01:00
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
2024-02-16 08:51:04 +01:00
config.allowUnfree = true;
};
2024-03-24 11:54:10 +01:00
python-packages = p: with p; [
biopython
numpy
dask
numba
2024-03-24 11:54:10 +01:00
];
2024-02-16 08:51:04 +01:00
in {
devShells.default = pkgs.mkShell {
2024-03-24 11:54:10 +01:00
packages = (with pkgs; [
python311
(python-packages python311Packages)
]) ++ (with pkgs-unstable; [
nodejs
memray
2024-02-16 08:51:04 +01:00
# Editor of your choice
# (jetbrains.plugins.addPlugins jetbrains.pycharm-professional [ "github-copilot" ])
2024-03-24 11:54:10 +01:00
# vscodium
]);
2024-02-16 08:51:04 +01:00
};
});
}