Update build configuration files

This commit is contained in:
Oliver Davies 2024-03-31 10:27:06 +01:00
parent cb429930b0
commit 1084aa502e
3 changed files with 15 additions and 113 deletions

View file

@ -1,27 +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 oliverdavies-uk";
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, ... }: {
formatter = pkgs.nixfmt;
inherit (pkgs) mkShell;
in {
devShells.${system}.default =
mkShell { buildInputs = with pkgs; [ nodePackages.pnpm nodejs php82 php82Packages.composer ]; };
devshells.default = {
packages = with pkgs; [
"nodePackages.pnpm"
"nodejs"
"php82"
"php82Packages.composer"
];
};
};
formatter.${system} = pkgs.nixfmt;
};
}