1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-16 21:38:24 +00:00
flake-parts/examples/shell-environments/flake.nix

23 lines
613 B
Nix
Raw Normal View History

2023-06-15 22:13:02 +02:00
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
2023-06-26 09:14:11 +02:00
nativeBuildInputs = with pkgs; [ terraform wget bat nixpkgs-fmt ];
2023-06-15 22:13:02 +02:00
};
devShells.another_env = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ curl ];
};
};
};
}