Re: [Nix-dev] error: cannot auto-call a function that has an argument without a default value (‘stdenv’)

2017-07-07 Thread Christian Kauhaus via nix-dev
Am 07.07.2017 um 08:07 schrieb Vladimír Čunát via nix-dev: > That's how it's commonly done in nixpkgs. If you want a *separate* > expression that depends on nixpkgs, you may e.g. start by adding this > line to the beginning of the file: > with import {}; > instead of > { stdenv,

Re: [Nix-dev] error: cannot auto-call a function that has an argument without a default value (‘stdenv’)

2017-07-07 Thread Vladimír Čunát via nix-dev
On 07/06/2017 05:54 PM, tj5527 via nix-dev wrote: > Following the example > at http://nixos.org/nix/manual/#chap-writing-nix-expressions to build > hello package. But `nix-build -A hello` throws error "error: cannot > auto-call a function that has an argument without a default value > (‘stdenv’)"

[Nix-dev] error: cannot auto-call a function that has an argument without a default value (‘stdenv’)

2017-07-06 Thread tj5527 via nix-dev
Following the example at http://nixos.org/nix/manual/#chap-writing-nix-expressions to build hello package. But `nix-build -A hello` throws error "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)" How can I fix this problem? My nix-build (Nix) is 1.11.11