From bf5f9256eb9484fcaa461e94bf34549b22a48cab Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 17 Jul 2024 20:17:23 +0100 Subject: [PATCH] Update build configuration files --- flake.nix | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/flake.nix b/flake.nix index 7835238..cdee885 100644 --- a/flake.nix +++ b/flake.nix @@ -1,25 +1,19 @@ # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. - { - inputs = { - devshell.url = "github:numtide/devshell"; - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - }; + description = "A Nix Flake for build-configs"; + + 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; [ just php82 php82Packages.composer ]; }; - perSystem = { config, self', inputs', pkgs, system, ... }: { - devshells.default = { - packages = with pkgs; [ - "just" - "php82" - "php82Packages.composer" - ]; - }; - }; + formatter.${system} = pkgs.nixfmt; }; }