mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
Update build configuration files
This commit is contained in:
parent
bb9820e052
commit
c888fc2c28
41
flake.nix
41
flake.nix
|
@ -1,30 +1,25 @@
|
||||||
# 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.
|
||||||
|
|
||||||
{
|
{
|
||||||
description = "A Nix Flake for build-configs";
|
inputs = {
|
||||||
|
devshell.url = "github:numtide/devshell";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
outputs = inputs@{ flake-parts, ... }:
|
||||||
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
imports = [ inputs.devshell.flakeModule ];
|
||||||
|
|
||||||
outputs = { nixpkgs, ... }:
|
systems = [ "x86_64-linux" ];
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
|
|
||||||
inherit (pkgs) mkShell;
|
perSystem = { config, self', inputs', pkgs, system, ... }: {
|
||||||
inherit (pkgs.php) buildComposerProject;
|
devshells.default = {
|
||||||
in {
|
packages = with pkgs; [
|
||||||
devShells.${system}.default =
|
"just"
|
||||||
mkShell { buildInputs = with pkgs; [ just php82 php82Packages.composer ]; };
|
"php82"
|
||||||
|
"php82Packages.composer"
|
||||||
packages.${system}.default = buildComposerProject (finalAttrs: {
|
];
|
||||||
pname = "build-configs";
|
};
|
||||||
version = "0.1.0";
|
};
|
||||||
src = ./.;
|
|
||||||
|
|
||||||
composerLock = ./composer.lock;
|
|
||||||
|
|
||||||
vendorHash = "sha256-HElnPeC88D4kFp39/dikEd2XbqQ3xXOaDR0k48TB2tY=";
|
|
||||||
});
|
|
||||||
|
|
||||||
formatter.${system} = pkgs.nixfmt;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue