mirror of https://github.com/hannobraun/Fornjot
Add `shell.nix` to enable development on NixOS
This commit is contained in:
parent
9704e2d2e1
commit
05fb140b36
|
@ -0,0 +1,22 @@
|
|||
# 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> { } }:
|
||||
|
||||
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";
|
||||
}
|
Loading…
Reference in New Issue