Manage Build Configs with Build Configs

This commit is contained in:
Oliver Davies 2024-01-26 14:56:19 +00:00
parent ed36ac2e28
commit 8818baed58
4 changed files with 100 additions and 20 deletions

View file

@ -1,19 +1,24 @@
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devshell.flakeModule ];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ php82 php82Packages.composer ];
devshells.default = {
packages = with pkgs; [
"php81"
"php81Packages.composer"
];
};
packages.default = pkgs.runCommand "default" { src = "./."; } ''
mkdir -p $out
cp ./build-configs $out
'';
};
};
}