-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
32 lines (30 loc) · 1.01 KB
/
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
{
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShellNoCC {
buildInputs = with pkgs; [
nodejs_latest
# The pnpm in nixpkgs is out of date, so we instead rely on Corepack
# to provide pnpm
corepack_latest
nodePackages_latest.typescript-language-server
nodePackages_latest.vscode-json-languageserver
# Forces Biome to run as a statically-linked musl binary
musl
# Dependencies for building canvas
python3
pkg-config
pixman
cairo
pango
];
# For building canvas
env.LD_LIBRARY_PATH =
pkgs.lib.makeLibraryPath (with pkgs; [ libuuid ]);
env.CPLUS_INCLUDE_PATH =
pkgs.lib.makeIncludePath (with pkgs; [ fontconfig.dev ]);
};
});
}