File tree 4 files changed +65
-0
lines changed
4 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ use flake
Original file line number Diff line number Diff line change
1
+ /.direnv /
2
+ /.emscripten_cache /
1
3
/.make-work /
2
4
/.metals /
3
5
/.vscode-test /
Original file line number Diff line number Diff line change
1
+ {
2
+ description = "A Nix-flake-based development environment for vscode-parse-tree" ;
3
+
4
+ inputs . nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
5
+
6
+ outputs = { self , nixpkgs } :
7
+ let
8
+ overlays = [
9
+ ( final : prev : rec {
10
+ nodejs = prev . nodejs-18_x ;
11
+ yarn = ( prev . yarn . override { inherit nodejs ; } ) ;
12
+ } )
13
+ ] ;
14
+ supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ] ;
15
+ forEachSupportedSystem = f : nixpkgs . lib . genAttrs supportedSystems ( system : f {
16
+ pkgs = import nixpkgs { inherit overlays system ; config . allowUnfree = true ; } ;
17
+ } ) ;
18
+ in
19
+ {
20
+ devShells = forEachSupportedSystem
21
+ ( { pkgs } : {
22
+ default = pkgs . mkShell
23
+ {
24
+ packages = with pkgs ; [ nodejs yarn emscripten python310 steam-run vsce ] ;
25
+ shellHook = ''
26
+ if [ ! -d $(pwd)/.emscripten_cache ]; then
27
+ cp -R ${ pkgs . emscripten } /share/emscripten/cache/ $(pwd)/.emscripten_cache
28
+ chmod u+rwX -R $(pwd)/.emscripten_cache
29
+ export EM_CACHE=$(pwd)/.emscripten_cache
30
+ fi
31
+ '' ;
32
+ } ;
33
+ } ) ;
34
+ } ;
35
+ }
You can’t perform that action at this time.
0 commit comments