Skip to content

Commit db7b51e

Browse files
committed
Add a nix flake
1 parent 8961529 commit db7b51e

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.DS_store
2+
.envrc
3+
.direnv

tools/nix/flake.lock

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

tools/nix/flake.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs";
4+
};
5+
6+
outputs = { self, nixpkgs }:
7+
let
8+
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
9+
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
10+
inherit system;
11+
pkgs = import nixpkgs { inherit system; };
12+
});
13+
in
14+
{
15+
devShells = forEachSupportedSystem ({ pkgs, system }: {
16+
default = pkgs.mkShell {
17+
nativeBuildInputs = with pkgs; [
18+
commitlint
19+
eclint
20+
];
21+
};
22+
});
23+
};
24+
}

0 commit comments

Comments
 (0)