aci/flake.nix

31 lines
677 B
Nix
Raw Normal View History

2024-02-16 13:02:22 +00:00
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
flake-utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
dependencies = ps: with ps; [
fastapi
uvicorn
];
devDependencies = ps: with ps; [
fastapi
uvicorn
python-lsp-server
];
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(python311.withPackages devDependencies)
];
};
});
}