Nix-shell error: … while calling the 'derivationStrict' builtin

error:

   … while calling the 'derivationStrict' builtin

     at /builtin/derivation.nix:9:12: (source not available)
   … while evaluating derivation 'nix-shell'
     whose name attribute is located at /nix/store/hr2hwc49p0gym4rx1m1j4ppn6cncxxs3-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:336:7
   … while evaluating attribute 'buildInputs' of derivation 'nix-shell'
     at /nix/store/hr2hwc49p0gym4rx1m1j4ppn6cncxxs3-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:383:7:

          depsHostHost                = elemAt (elemAt dependencies 1) 0;
      383|       buildInputs                 = elemAt (elemAt dependencies 1) 1;
         |       ^
      384|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;

   … while evaluating derivation 'ostree-2020.8'
     whose name attribute is located at /nix/store/hr2hwc49p0gym4rx1m1j4ppn6cncxxs3-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:336:7

   … while evaluating attribute 'patches' of derivation 'ostree-2020.8'

     at /nix/store/hr2hwc49p0gym4rx1m1j4ppn6cncxxs3-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:400:14:

This is not the full error, we are missing key information present at the end.

Also for us to help you with this, you should give us the Nix code, otherwise it’ll be hard to guess what you wrote.

1 Like

Also, that’s quite an old version of ostree, ensure you’re using the nixos-24.11 channel (if you’re using stable) and update your inputs as needed.