Skip to content

Commit 9545733

Browse files
authored
Merge pull request #63 from webxdc/sk/add_nix
Feat: Add nix
2 parents fb69a27 + f3cdd7e commit 9545733

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

.envrc

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

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
*~
3+
*~
4+
.direnv

flake.lock

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

flake.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
description = "A Nix-flake-based Node.js development environment";
3+
4+
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
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+
pkgs = import nixpkgs { inherit system; };
11+
});
12+
in
13+
{
14+
devShells = forEachSupportedSystem ({ pkgs }: {
15+
default = pkgs.mkShell {
16+
packages = with pkgs; [ nodejs nodePackages.typescript-language-server ];
17+
};
18+
});
19+
};
20+
}

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"name": "Martijn Faassen",
1818
"email": "[email protected]",
1919
"url": "http://blog.startifact.com"
20+
},
21+
{
22+
"name": "Sebastian Klähn",
23+
"email": "[email protected]"
2024
}
2125
],
2226
"files": [

0 commit comments

Comments
 (0)