mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 03:15:34 +01:00
Manage Build Configs with Build Configs
This commit is contained in:
parent
ed36ac2e28
commit
8818baed58
4 changed files with 100 additions and 20 deletions
21
flake.nix
21
flake.nix
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue