bidict/flake.nix

34 lines
797 B
Nix
Raw Normal View History

{
description = "bidict";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
2024-06-25 00:43:24 +00:00
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
2024-06-25 00:43:24 +00:00
flake-utils.lib.eachDefaultSystem (system:
let
2024-06-25 00:43:24 +00:00
pkgs = import nixpkgs { inherit system; };
in {
devShell = pkgs.mkShell {
packages = with pkgs; [
pre-commit
python313
2024-06-25 00:43:24 +00:00
python312
python311
python310
python39
pypy310
pypy39
uv # bootstrap uv version (another version is installed in the dev env by this version)
2024-06-25 00:43:24 +00:00
];
shellHook = ''
./init_dev_env
source ".venv/bin/activate"
echo "* Activated development virtualenv"
2024-06-25 00:43:24 +00:00
'';
};
});
}