-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2105 from hannobraun/nix
Add configuration for developing on NixOS
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} |