From 0a277ff0ba31b99cbdfebb0d7986d5e235be6ba9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 17 Jul 2024 20:17:59 +0100 Subject: [PATCH] Update build configuration files --- flake.nix | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/flake.nix b/flake.nix index a149852..80297ac 100644 --- a/flake.nix +++ b/flake.nix @@ -1,24 +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 sculpin-skeleton"; - outputs = inputs@{ flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } { - imports = [ inputs.devshell.flakeModule ]; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - systems = [ "x86_64-linux" ]; + outputs = { nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; - perSystem = { config, self', inputs', pkgs, system, ... }: { - devshells.default = { - packages = with pkgs; [ - "php81" - "php81Packages.composer" - ]; - }; - }; + inherit (pkgs) mkShell; + in { + devShells.${system}.default = + mkShell { buildInputs = with pkgs; [ php81 php81Packages.composer ]; }; + + formatter.${system} = pkgs.nixfmt; }; }