Skip to content

Instantly share code, notes, and snippets.

@hawkw
Last active January 29, 2024 23:47
Show Gist options
  • Save hawkw/141cc4f4758a4c91090ff7064a5a596d to your computer and use it in GitHub Desktop.
Save hawkw/141cc4f4758a4c91090ff7064a5a596d to your computer and use it in GitHub Desktop.
omicron nix shell environment
scope@{ pkgs ? import <nixpkgs> { } }:
with pkgs; mkShell.override { stdenv = clangStdenv; } {
name = "buildomat";
buildInputs =
[
stdenv
cmake
rustup
pkg-config
openssl
libxml2
postgresql
xmlsec
sqlite
libclang
(glibcLocales.override { locales = [ "en_US.UTF-8" ]; })
] ++ lib.optional stdenv.isDarwin [ Security libiconv ];
DEP_PQ_LIBDIRS = " ${postgresql.lib}/lib";
LIBCLANG_PATH = "${libclang.lib}/lib";
LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";
LC_ALL = "en_US.UTF-8";
OPENSSL_DIR = "${openssl.dev}";
OPENSSL_LIB_DIR = "${openssl.out}/lib";
CARGO_TERM_COLOR = "always";
RUST_BACKTRACE = "full";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment