Skip to content

Instantly share code, notes, and snippets.

@portothree
Forked from 573/readme.md
Created January 4, 2022 12:40
Show Gist options
  • Save portothree/24b4bd4caa4092594ba2c22ae78215bb to your computer and use it in GitHub Desktop.
Save portothree/24b4bd4caa4092594ba2c22ae78215bb to your computer and use it in GitHub Desktop.
nix complains "error: cannot auto-call a function that has an argument without a default value ('stdenv')"?

Add on top of default.nix: with import <nixpkgs>{}; or simply run as nix-build '<nixpkgs>' (i. e. for nix-build complaining) or rather nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}' (or even import)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment