Skip to content

Instantly share code, notes, and snippets.

@yurifrl
Last active October 26, 2023 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurifrl/638a45cd8ed226e2bc2c883551b98090 to your computer and use it in GitHub Desktop.
Save yurifrl/638a45cd8ed226e2bc2c883551b98090 to your computer and use it in GitHub Desktop.
Testing build nix derivations, passing arguments to nix-buld
# https://nix-dev.science.uu.narkive.com/gkWG24xs/error-cannot-auto-call-a-function-that-has-an-argument-without-a-default-value-stdenv
nix-build --no-out-link -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
# the --no-out-link will no create the @result link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment