Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import <nixos> {};
- {
- repositoryName = stdenv.mkDerivation {
- name = "repositoryName";
- buildInputs = [
- julia_10
- # Any other dependency you need
- #python36Packages.matplotlib
- python36Packages.jupyter
- openblas
- gfortran7
- ];
- SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt";
- GIT_SSL_CAINFO="/etc/ssl/certs/ca-certificates.crt";
- # First important part: Add here the dependencies the packages you want to install need
- LD_LIBRARY_PATH="${glfw}/lib:${mesa_noglu}/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:${openblas}/lib:${gfortran7}/lib";
- shellHook = ''
- unset http_proxy
- # This is the seconnd important part. Set a relative julia_pkgdir path so that they are specific to this
- # Nix env environment and are not global
- export JULIA_PKGDIR=$(realpath ./.julia_pkgs)
- mkdir -p $JULIA_PKGDIR
- # You could also call julia -e "Pkg.init()" # and if you want install the packages you need
- '';
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement