mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add basic nix shell and direnv config (working on macOS) (#268)
* Add basic nix shell (working on macOS) * Add direnv format
This commit is contained in:
parent
e390884221
commit
04eca4b196
2
.gitignore
vendored
2
.gitignore
vendored
@ -28,3 +28,5 @@ perf.data*
|
||||
*flamechart.svg
|
||||
|
||||
frame_*.png
|
||||
|
||||
.direnv/
|
||||
|
||||
31
shell.nix
Normal file
31
shell.nix
Normal file
@ -0,0 +1,31 @@
|
||||
# This nix-shell only supports macOS right now. Soon I will also add support for Linux
|
||||
# The repository supports direnv (https://direnv.net/). If your IDE supports direnv,
|
||||
# then you do not need to care about dependencies.
|
||||
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
with pkgs;
|
||||
let
|
||||
unstable = import
|
||||
(builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/075dce259f6ced5cee1226dd76474d0674b54e64.tar.gz";
|
||||
})
|
||||
{ };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
# Tools
|
||||
unstable.rustup
|
||||
unstable.just
|
||||
unstable.tracy
|
||||
unstable.nixpkgs-fmt # To format this file: nixpkgs-fmt *.nix
|
||||
# System dependencies
|
||||
unstable.flatbuffers
|
||||
unstable.protobuf
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
unstable.libiconv
|
||||
pkgs.darwin.apple_sdk.frameworks.ApplicationServices
|
||||
pkgs.darwin.apple_sdk.frameworks.CoreVideo
|
||||
pkgs.darwin.apple_sdk.frameworks.AppKit
|
||||
];
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user