-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unknown
committed
Jan 22, 2023
1 parent
641192c
commit 07e5525
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
run = "nix-shell build.nix" | ||
entrypoint = "index.js" | ||
|
||
language = "nodejs" | ||
|
||
[nix] | ||
channel="stable-21_11" | ||
|
||
[packager] | ||
language = "nodejs" | ||
|
||
[packager.features] | ||
packageSearch = true | ||
guessImports = true | ||
|
||
[languages.nodejs] | ||
pattern = "**/*.js" | ||
syntax = "nodejs" | ||
|
||
[languages.nodejs.languageServer] | ||
start = [ "typescript-language-server", "--stdio" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# DO NOT CHANGE THIS FILE | ||
|
||
with import <nixpkgs> { }; | ||
stdenv.mkDerivation { | ||
name = "env"; | ||
nativeBuildInputs = [ pkg-config ]; | ||
buildInputs = [ | ||
libpng | ||
libjpeg | ||
libuuid | ||
]; | ||
|
||
shellHook = '' | ||
LD=$CC | ||
nix-shell run.nix | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ pkgs }: { | ||
deps = with pkgs; [ | ||
nodejs-16_x | ||
nodePackages.typescript-language-server | ||
nodePackages.node-pre-gyp | ||
libpng | ||
libjpeg | ||
libuuid | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# DO NOT CHANGE THIS FILE | ||
|
||
{ pkgs ? import <nixpkgs> { } }: | ||
with pkgs; mkShell { | ||
name = "node-dev-shell"; | ||
|
||
APPEND_LIBRARY_PATH = "${lib.makeLibraryPath [ libGL libuuid ]}"; | ||
shellHook = '' | ||
export LD_LIBRARY_PATH="$APPEND_LIBRARY_PATH:$LD_LIBRARY_PATH" | ||
npm i | ||
npm start | ||
''; | ||
|
||
# Replace 'npm run-script run' with your run command. | ||
|
||
} |