Skip to content

Instantly share code, notes, and snippets.

@573
Last active January 20, 2024 21:02
Show Gist options
  • Star 27 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save 573/b46c4b6e4fe624fbfffc6fbe18be61ec to your computer and use it in GitHub Desktop.
Save 573/b46c4b6e4fe624fbfffc6fbe18be61ec 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)

@gi-yt
Copy link

gi-yt commented Feb 19, 2022

Was very useful. Thanks!

@djsnipa1
Copy link

Legend!

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