build-configs/templates/php/common/flake.nix.twig

20 lines
470 B
Twig
Raw Normal View History

# {{ managedText|raw }}
{
2024-03-30 18:03:40 +00:00
description = "A Nix Flake for {{ name }}";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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;
in {
devShells.${system}.default =
mkShell { buildInputs = with pkgs; [ {{ flake.devshell.packages|join(' ') }} ]; };
2024-03-30 18:03:40 +00:00
formatter.${system} = pkgs.nixfmt;
};
}