Something went wrong. Try again.
Just a first repo to make sure I have tangled and everything set up correctly. I figured this would be a good way to say hello :)
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738{ description = "Python dev environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f { pkgs = import nixpkgs { inherit system; }; }); in { devShells = forAllSystems ({ pkgs }: { default = pkgs.mkShell { packages = with pkgs; [ (python3.withPackages (ps: with ps; [ pip virtualenv ])) ruff # fast linter + formatter pyright # type checker / LSP uv # fast package manager ]; }; });
apps = forAllSystems ({ pkgs }: { default = { type = "app"; program = toString (pkgs.writeShellScript "run-hello-py" '' ${pkgs.python3}/bin/python3 ${./hello.py} ''); }; }); };}