nix.dev icon indicating copy to clipboard operation
nix.dev copied to clipboard

The example in "Tutorials > Ad hoc developer environments >Towards reproducibility" fails

Open rldp opened this issue 4 years ago • 2 comments

The following is a fully reproducible example and something that different colleagues with different machines, for example, could share.

$ nix-shell --pure -p git -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/82b5f87fcc710a99c47c5ffe441589807a8202af.tar.gz

On nixos-version = 22.05pre338278.b0bf5f888d3 (Quokka), I get

error: anonymous function at /nix/store/y2fh997ssq4i68di86q60mwfviqjvh28-source/pkgs/top-level/default.nix:20:1 called with unexpected argument 'inNixShell'

       at /nix/store/y2fh997ssq4i68di86q60mwfviqjvh28-source/pkgs/top-level/impure.nix:84:1:

           83|
           84| import ./. (builtins.removeAttrs args [ "system" "platform" ] // {
             | ^
           85|   inherit config overlays crossSystem crossOverlays;

rldp avatar Dec 13 '21 19:12 rldp

The bug is reproducible though.

I encoutered that bug while targeting some old nixpkgs in nixos 19.09. Gone with 21.11.

puzzling nonetheless.

nrolland avatar Jan 10 '22 12:01 nrolland

Fixed in 5e0ba5f66b80401ba51c43c6230f6196d1356462

domenkozar avatar Mar 29 '22 09:03 domenkozar