nix icon indicating copy to clipboard operation
nix copied to clipboard

Cannot coerce null to string (M1 Mac)

Open ureciocais opened this issue 2 years ago • 1 comments

Describe the bug

I'm getting cannot coerce null to a string from some Nix packages. /nix/store/8br3hnwahahpi4m3s9xjd34xn18bf1l4-source/pkgs/stdenv/generic/make-derivation.nix:192:21 Here -> name = "${attrs.pname}-${attrs.version}"; Originated from:

       at /nix/store/8br3hnwahahpi4m3s9xjd34xn18bf1l4-source/pkgs/build-support/mkshell/default.nix:28:3:

           27| stdenv.mkDerivation ({
           28|   name = "nix-shell";
             |   ^
           29|   phases = ["nobuildPhase"];

Is it because it should be

Expected behavior

No error

nix-env version is 2.11.0

Additional context

Add any other context about the problem here.

ureciocais avatar Sep 05 '22 16:09 ureciocais

I ran into the same issue when I tried to use nix-darwin with flakes. The README.md example was using an old version of nixpkgs-darwin. Changing it to use the latest version seemed to fix it. I made a PR to update the readme: LnL7/nix-darwin#529 .

kindrowboat avatar Sep 18 '22 13:09 kindrowboat