2023-02-20 13:50:17 +00:00
|
|
|
{
|
|
|
|
description = "bidict";
|
|
|
|
|
|
|
|
inputs = {
|
2024-06-25 00:43:24 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-11-02 20:14:03 +00:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
# Get pypy310 from a nixpkgs revision where its binary is in the binary cache
|
|
|
|
# to avoid building it from source.
|
|
|
|
pypy310.url = "github:NixOS/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732";
|
2023-02-20 13:50:17 +00:00
|
|
|
};
|
|
|
|
|
2024-11-02 20:14:03 +00:00
|
|
|
outputs = { self, flake-utils, nixpkgs, pypy310 }:
|
2024-06-25 00:43:24 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
2023-02-20 13:50:17 +00:00
|
|
|
let
|
2024-06-25 00:43:24 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
pre-commit
|
2024-10-04 13:08:17 +00:00
|
|
|
python313
|
2024-06-25 00:43:24 +00:00
|
|
|
python312
|
|
|
|
python311
|
|
|
|
python310
|
|
|
|
python39
|
2024-11-02 20:14:03 +00:00
|
|
|
uv # Bootstrap version used to install a possibly-newer version when 'uv sync' is run (via uv.lock)
|
|
|
|
] ++ [
|
|
|
|
pypy310.legacyPackages.${system}.pypy310
|
2024-06-25 00:43:24 +00:00
|
|
|
];
|
|
|
|
shellHook = ''
|
2024-10-05 13:34:33 +00:00
|
|
|
./init_dev_env
|
|
|
|
source ".venv/bin/activate"
|
2024-06-25 00:43:24 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
});
|
2023-02-20 13:50:17 +00:00
|
|
|
}
|