I am using Nix on Guix for a project of our company. For that, we have an .envrc
file:
export NIX_REMOTE=daemon
use nix -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-23.11.tar.gz -p ...
I only get the following error as a result, however:
warning: Nix search path entry 'https://github.com/NixOS/nixpkgs/archive/nixos-23.11.tar.gz' cannot be downloaded, ignoring
error:
… while calling anonymous lambda
at «string»:1:1:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (jdk21_headless) (clojure) (cljfmt) (postgresql_15_jit) (nodejs_20) (clj-kondo) (babashka) (clojure-lsp) (process-compose) (doctl) (awscli2) (bmake) ]; } ""
| ^
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
direnv: export +NIX_REMOTE
The nix daemon is running. I tried to alternatively run it directly on the command line, using nix-shell -I https://github.com/NixOS/nixpkgs/archive/nixos-23.11.tar.gz -p ...
, but that gives me the same result.
What is going wrong?