build-configs/templates/fractal/flake.nix.twig
2024-03-30 18:03:40 +00:00

23 lines
524 B
Twig

# {{ managedText|raw }}
{
description = "A Nix Flake for {{ name }}";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) mkShell;
in {
devShells.${system}.default = mkShell { buildInputs = with pkgs; [
{% for package in flake.devshell.packages %}
{{ package }}
{% endfor %}
]; };
formatter.${system} = pkgs.nixfmt;
};
}