flake.nix
1 { 2 description = "A startup python project with devshell"; 3 4 inputs = { 5 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 6 flake-parts.url = "github:hercules-ci/flake-parts"; 7 8 devshell.url = "github:numtide/devshell"; 9 }; 10 11 outputs = inputs@{ flake-parts, ... }: 12 flake-parts.lib.mkFlake { inherit inputs; } { 13 imports = [ 14 inputs.devshell.flakeModule 15 # devshell 16 { 17 perSystem = { pkgs, ... }: { 18 devshells.default = { 19 env = [ ]; 20 commands = [ ]; 21 packages = with pkgs;[ 22 (python3.withPackages (ps: with ps; [ 23 requests 24 ])) 25 ]; 26 }; 27 }; 28 } 29 ]; 30 31 systems = [ 32 "x86_64-linux" 33 "aarch64-linux" 34 "aarch64-darwin" 35 "x86_64-darwin" 36 ]; 37 }; 38 }