From ab7296f7188a9d8a8accbf9084659727299d449a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Jun 2024 12:17:02 +0100 Subject: [PATCH] Update build configuration files --- flake.nix | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index b2bf3657..65cbe052 100644 --- a/flake.nix +++ b/flake.nix @@ -1,19 +1,26 @@ # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. + { - description = "A Nix Flake for oliverdavies-uk"; + inputs = { + devshell.url = "github:numtide/devshell"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + outputs = inputs@{ flake-parts, ... }: + flake-parts.lib.mkFlake { inherit inputs; } { + imports = [ inputs.devshell.flakeModule ]; - outputs = { nixpkgs, ... }: - let - system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; + systems = [ "x86_64-linux" ]; - inherit (pkgs) mkShell; - in { - devShells.${system}.default = - mkShell { buildInputs = with pkgs; [ nodePackages.pnpm nodejs php82 php82Packages.composer ]; }; - - formatter.${system} = pkgs.nixfmt; + perSystem = { config, self', inputs', pkgs, system, ... }: { + devshells.default = { + packages = with pkgs; [ + "nodePackages.pnpm" + "nodejs" + "php82" + "php82Packages.composer" + ]; + }; + }; }; }