Skip to content

Commit 61d2111

Browse files
joschawing328
andauthored
chore: add nix flake (#826)
* chore: add nix flake * chore: we do need npm --------- Co-authored-by: William Cheng <[email protected]>
1 parent 3d37a59 commit 61d2111

File tree

4 files changed

+89
-1
lines changed

4 files changed

+89
-1
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
has nix && use flake

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ Thumbs.db
4141

4242
/openapitools.json
4343

44-
.nx/cache
44+
.nx/cache
45+
46+
# Direnv
47+
.direnv

flake.lock

+60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
description = "OpenAPI generator CLI nix flake";
3+
4+
inputs.nixpkgs.url = "github:nixos/nixpkgs";
5+
inputs.flake-utils.url = "github:numtide/flake-utils";
6+
7+
outputs = { self, nixpkgs, flake-utils, ... }:
8+
flake-utils.lib.eachDefaultSystem (system:
9+
let
10+
pkgs = import nixpkgs { inherit system; };
11+
in
12+
{
13+
devShells.default = pkgs.mkShell
14+
{
15+
buildInputs = with pkgs;[
16+
# These dependencies match the github workflows
17+
yarn
18+
nodejs_18
19+
];
20+
};
21+
}
22+
);
23+
}
24+

0 commit comments

Comments
 (0)