diff --git a/jupyter/flake.nix b/jupyter/flake.nix index cb8b521..5b473b3 100644 --- a/jupyter/flake.nix +++ b/jupyter/flake.nix @@ -21,6 +21,7 @@ [python311 virtualenv] ++ (with pkgs.python311Packages; [ pip + python-lsp-server venvShellHook requests jupyter diff --git a/nix/flake.nix b/nix/flake.nix index a2a6d75..3ddc58d 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -3,26 +3,29 @@ inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; - outputs = { self, nixpkgs }: - let - supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; - forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { - pkgs = import nixpkgs { inherit system; }; - }); - in - { - devShells = forEachSupportedSystem ({ pkgs }: { - default = pkgs.mkShell { - packages = with pkgs; [ - cachix - lorri - niv - nixfmt-classic - statix - vulnix - haskellPackages.dhall-nix - ]; - }; - }); - }; + outputs = { + self, + nixpkgs, + }: let + supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; + forEachSupportedSystem = f: + nixpkgs.lib.genAttrs supportedSystems (system: + f { + pkgs = import nixpkgs {inherit system;}; + }); + in { + devShells = forEachSupportedSystem ({pkgs}: { + default = pkgs.mkShell { + packages = with pkgs; [ + cachix + lorri + niv + alejandra + statix + vulnix + haskellPackages.dhall-nix + ]; + }; + }); + }; } diff --git a/python/flake.nix b/python/flake.nix index 2f657e8..e89eb1f 100644 --- a/python/flake.nix +++ b/python/flake.nix @@ -3,23 +3,28 @@ inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; - outputs = { self, nixpkgs }: - let - supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; - forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { - pkgs = import nixpkgs { inherit system; }; - }); - in - { - devShells = forEachSupportedSystem ({ pkgs }: { - default = pkgs.mkShell { - venvDir = "venv"; - packages = with pkgs; [ python311 ] ++ - (with pkgs.python311Packages; [ - pip - venvShellHook - ]); - }; - }); - }; + outputs = { + self, + nixpkgs, + }: let + supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; + forEachSupportedSystem = f: + nixpkgs.lib.genAttrs supportedSystems (system: + f { + pkgs = import nixpkgs {inherit system;}; + }); + in { + devShells = forEachSupportedSystem ({pkgs}: { + default = pkgs.mkShell { + venvDir = "venv"; + packages = with pkgs; + [python311] + ++ (with pkgs.python311Packages; [ + pip + venvShellHook + python-lsp-server + ]); + }; + }); + }; }