mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +00:00
Update build configuration files
This commit is contained in:
parent
e5892e1904
commit
bf5f9256eb
30
flake.nix
30
flake.nix
|
@ -1,25 +1,19 @@
|
||||||
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
||||||
|
|
||||||
{
|
{
|
||||||
inputs = {
|
description = "A Nix Flake for build-configs";
|
||||||
devshell.url = "github:numtide/devshell";
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, ... }:
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
||||||
imports = [ inputs.devshell.flakeModule ];
|
|
||||||
|
|
||||||
systems = [ "x86_64-linux" ];
|
outputs = { nixpkgs, ... }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
perSystem = { config, self', inputs', pkgs, system, ... }: {
|
inherit (pkgs) mkShell;
|
||||||
devshells.default = {
|
in {
|
||||||
packages = with pkgs; [
|
devShells.${system}.default =
|
||||||
"just"
|
mkShell { buildInputs = with pkgs; [ just php82 php82Packages.composer ]; };
|
||||||
"php82"
|
|
||||||
"php82Packages.composer"
|
formatter.${system} = pkgs.nixfmt;
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue