-
Notifications
You must be signed in to change notification settings - Fork 16
/
flake.nix
38 lines (37 loc) · 942 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
# Override nixpkgs to use the latest set of node packages
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
inputs.systems.url = "github:nix-systems/default";
outputs = {
self,
nixpkgs,
flake-utils,
systems,
}:
flake-utils.lib.eachSystem (import systems)
(system: let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_21
python311
pkg-config
yarn-berry
xorg.libX11
xorg.libXext
xorg.libXi
libGL
nodePackages.typescript-language-server
nodePackages.prettier
libuuid
];
APPEND_LIBRARY_PATH = with pkgs; "${lib.makeLibraryPath [ libGL libuuid ]}";
shellHook = ''
export LD_LIBRARY_PATH="$APPEND_LIBRARY_PATH:$LD_LIBRARY_PATH"
'';
};
});
}