build-configs/templates/common/flake.nix.twig
Oliver Davies 99ffb87446 feat(flake): generate nix.flake instead of Docker
...files if a `flake` key exists in a `build.yaml` file.

Refs: OD-37
2023-06-27 17:29:59 +01:00

24 lines
561 B
Twig

{
inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devshell.flakeModule ];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devshells.default = {
packages = with pkgs; [
{% for package in flake.devshell.packages %}
"{{ package }}"
{% endfor %}
];
};
};
};
}