Closed idontgetoutmuch closed 3 years ago
Hi @idontgetoutmuch. What is this a proof of concept of exactly? If you're just trying to run pkgs.mkShell
with the derivation, I'd recommend doing that in a different file. Something like this (not tested):
{ pkgs ? import <nixpkgs> { config.allowBroken = true; } }:
let
myJulia = callPackage /path/to/your/julia2nix/generated/folder {};
in
pkgs.mkShell {
buildInputs = [
myJulia
pkgs.python3
pkgs.python3Packages.numpy
];
JULIA_DEPOT_PATH="/Users/dom/.julia";
}
Thanks :) The PoC was to be able to use lorri / direnv and now I can - btw is there a better way we can communicate? I feel a bit uncomfortable opening tickets just to have a discussion.
I'd be happy to set something up for users of this lib to chat. I'm open to suggestions about the best platform... For now I made a Gitter community, maybe we can try that: https://gitter.im/julia2nix/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link
There's also this new GitHub feature called Discussions. I just enabled it for this repo. Might be worth trying out https://github.com/thomasjm/julia2nix/discussions
I have this as my
shell.nix
and am using lorri / direnv in emacs to get my environment as I want it. I am not sufficiently expert in nix / julia to make it a more robust solution