Skip to content

Instantly share code, notes, and snippets.

@AttilaVM
Created February 12, 2018 17:18
Show Gist options
  • Save AttilaVM/a5d59c15b101ec9efd839492e2554341 to your computer and use it in GitHub Desktop.
Save AttilaVM/a5d59c15b101ec9efd839492e2554341 to your computer and use it in GitHub Desktop.
Julia dev environment on NixOS
# Based on nico202's gist
# src: https://gist.github.com/nico202/9377b3b378eab950dc05566e733ea320#file-shell-nix-L1
{
packageOverrides = pkgs : with pkgs; rec {
# other env definitions
julia = pkgs.myEnvFun {
name = "julia";
buildInputs = [
julia_06
];
extraCmds =
''
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
LD_LIBRARY_PATH="${glfw}/lib:${mesa}/lib:${freetype}/lib:${imagemagick}/lib:${portaudio}/lib:${libsndfile.out}/lib:${libxml2.out}/lib:${expat.out}/lib:${cairo.out}/lib:${pango.out}/lib:${gettext.out}/lib:${glib.out}/lib:${gtk3.out}/lib:${gdk_pixbuf.out}/lib:${cairo.out}:${tk.out}/lib:${tcl.out}/lib:${pkgs.sqlite.out}/lib:${pkgs.zlib}/lib";
'';
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment