build-configs/flake.nix

31 lines
884 B
Nix
Raw Normal View History

# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
2023-02-15 13:59:26 +00:00
{
2024-03-30 18:03:40 +00:00
description = "A Nix Flake for build-configs";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-02-15 13:59:26 +00:00
2024-03-30 18:03:40 +00:00
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2024-03-30 18:03:40 +00:00
inherit (pkgs) mkShell;
inherit (pkgs.php) buildComposerProject;
2024-03-30 18:03:40 +00:00
in {
devShells.${system}.default =
2024-04-04 17:41:36 +00:00
mkShell { buildInputs = with pkgs; [ just php82 php82Packages.composer ]; };
2023-06-23 19:24:04 +00:00
packages.${system}.default = buildComposerProject (finalAttrs: {
pname = "build-configs";
version = "0.1.0";
src = ./.;
composerLock = ./composer.lock;
vendorHash = "sha256-HElnPeC88D4kFp39/dikEd2XbqQ3xXOaDR0k48TB2tY=";
});
2024-03-30 18:03:40 +00:00
formatter.${system} = pkgs.nixfmt;
2023-06-23 19:24:04 +00:00
};
2023-02-15 13:59:26 +00:00
}