add shell.nix

This commit is contained in:
Nicholas Orlowsky 2025-02-19 23:54:15 -05:00
parent a63d9d1e65
commit f1195d1f04
3 changed files with 13 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

11
shell.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = [ pkgs.pkg-config pkgs.openssl pkgs.libgcc pkgs.boost pkgs.cmake ];
shellHook = ''
export OPENSSL_DIR="${pkgs.openssl.dev}"
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
export OPENSSL_NO_VENDOR=1
export OPENSSL_LIB_DIR="${pkgs.lib.getLib pkgs.openssl}/lib"
'';
}

View file

@ -7,6 +7,7 @@
#include <sstream> #include <sstream>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <span>
using namespace anthracite; using namespace anthracite;