-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
shell.nix
30 lines (26 loc) · 890 Bytes
/
shell.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
# Defines an environment for `nix-shell` for developing Fornjot on NixOS.
#
# This is not complete, and probably not the correct NixOS way to do it either.
# It's just what works for me (@hannobraun) in combination with my local
# environment. Pull requests to improve this (best coupled with thorough
# explanations, because I understand very little about Nix/NixOS) welcome!
{ pkgs ? import <nixpkgs> { } }:
let
# `cargo run -p <some-model>` won't work without these libraries on the path.
libPath = with pkgs; lib.makeLibraryPath [
libxkbcommon
vulkan-loader
wayland
];
in
pkgs.mkShell {
packages = with pkgs; [
# Used as a local build tool.
just
# Required by dependencies.
openssl
pkg-config
];
# Otherwise `export-validator` produces an error trying to link `libstdc++`.
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:${libPath}";
}