mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 18:27:31 +00:00
31 lines
884 B
Nix
31 lines
884 B
Nix
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
|
|
{
|
|
description = "A Nix Flake for build-configs";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
inherit (pkgs) mkShell;
|
|
inherit (pkgs.php) buildComposerProject;
|
|
in {
|
|
devShells.${system}.default =
|
|
mkShell { buildInputs = with pkgs; [ just 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;
|
|
};
|
|
}
|