Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
package-lock.json
libs/Cesium
yarn.lock

libs/Cesium
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let
overlays = [
(self: super: {
nodejs = super.nodejs-18_x;
})
];
pkgs = import nixpkgs {
inherit overlays system;

config.allowUnfree = true;
};
libraries = with pkgs; [
atk
alsa-lib
cairo
cups
dbus
expat
glib
gtk3
libdrm
libxkbcommon
mesa
nspr
nss
pango
xorg.libxcb
xorg.libX11
xorg.libXcomposite
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXrandr
];
in
{
devShells.default = with pkgs; mkShell {
packages = with pkgs; [
nodejs
(pkgs.runCommand "corepack-enable" { } ''
mkdir -p $out/bin
${nodejs}/bin/corepack enable --install-directory $out/bin
'')
] ++ libraries;

LD_LIBRARY_PATH = lib.makeLibraryPath libraries;
};
});
}