Closed bennyandresen closed 2 years ago
Thanks for the kind words :)
Interesting, so far I was not able to reproduce it. Two questions:
deps-lock.json
file on the demo repo and the one you get after running nix run github:jlesquembre/clj-nix#deps-lock
?In theory the lock file should be exactly the same
The deps-lock.json
is identical.
I'm not a mac user, NixOS Linux x86_64. I'm however on 21.11 and not unstable, which may be relevant. (It often is, I forgot.)
With flakes, your nixpkgs version should not matter. But maybe it does, not sure. I'll try to reproduce it using a different version.
What is your nix version? (nix --version)
I've also tried to edit the flake.nix nixpkgs.url = "github:NixOS/nixpkgs/release-21.11";
but that didn't help either.
$ nix --version
nix (Nix) 2.4
because 21.11 doesn't normally have enabled nix flakes my nixos/configuration.nix has the following entries
# enable flakes
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''experimental-features = nix-command flakes'';
I'm on 2.6 and nixpkgs unstable and I also have are those nix.extraOptions values. I'm playing a bit with different version', let's see if I find something
I was able to reproduce the error with nix 2.4
Could you try:
nix shell github:NixOS/nixpkgs/nixos-unstable#nix
nix build .#clj-tuto
nix build .#jdk-tuto
That fixed it for me, but not sure what's the reason, looking into the nix release notes
That also fixed it for me. Thanks! I can deal with this until the next NixOS release that includes a higher nix version.
Cool project! Very excited about marrying both Clojure and nix.
However following the tutorial I'm not able to create a custom jdk.
Steps to reproduce
^^^ output omitted