···574574 "The ‘env’ attribute set can only contain derivation, string, boolean or integer attributes. The ‘${n}’ attribute is of type ${builtins.typeOf v}."; v)
575575 env;
576576577577+ # Fixed-output derivations may not reference other paths, which means that
578578+ # for a fixed-output derivation, the corresponding inputDerivation should
579579+ # *not* be fixed-output. To achieve this we simply delete the attributes that
580580+ # would make it fixed-output.
581581+ deleteFixedOutputRelatedAttrs = lib.flip builtins.removeAttrs [ "outputHashAlgo" "outputHash" "outputHashMode" ];
582582+577583in
578584579585extendDerivation
···584590 # This allows easy building and distributing of all derivations
585591 # needed to enter a nix-shell with
586592 # nix-build shell.nix -A inputDerivation
587587- inputDerivation = derivation (derivationArg // {
593593+ inputDerivation = derivation (deleteFixedOutputRelatedAttrs derivationArg // {
588594 # Add a name in case the original drv didn't have one
589595 name = derivationArg.name or "inputDerivation";
590596 # This always only has one output