Skip to content

Commit 0228a55

Browse files
authored
Merge pull request #677 from opsmill/stable
Merge stable into develop
2 parents 3b4148f + 0740792 commit 0228a55

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
description = "Infrahub development environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = nixpkgs.legacyPackages.${system};
13+
in
14+
{
15+
devShells.default = pkgs.mkShell {
16+
buildInputs = [
17+
pkgs.git
18+
pkgs.gh
19+
pkgs.vale
20+
];
21+
22+
shellHook = ''
23+
echo "Infrahub development environment"
24+
echo "Available tools:"
25+
echo " - git: $(git --version)"
26+
echo " - gh (GitHub CLI): $(gh --version | head -n1)"
27+
echo " - vale (prose linter): $(vale --version)"
28+
'';
29+
};
30+
}
31+
);
32+
}

0 commit comments

Comments
 (0)