Skip to content

Commit bd42be9

Browse files
committed
noop: add nix flake
1 parent 31428e2 commit bd42be9

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

flake.lock

Lines changed: 27 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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
description = "A shell environment for building and testing build-tools";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
};
7+
8+
outputs = { nixpkgs, ... }:
9+
let
10+
forAllSystems = function:
11+
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
12+
(system: function nixpkgs.legacyPackages.${system});
13+
in
14+
{
15+
formatter = forAllSystems (pkgs: pkgs.alejandra);
16+
devShells = forAllSystems (pkgs: {
17+
default = pkgs.mkShell {
18+
packages = with pkgs; [
19+
pnpm
20+
nodejs_22
21+
];
22+
};
23+
});
24+
};
25+
}

0 commit comments

Comments
 (0)