nixpkgs/pkgs/stdenv/generic
Jade Lovelace 78945a827c stdenv: make inputDerivation never fixed-output
This fixes using inputDerivation on derivations that are fixed-output.

Previously:

```
nix-repl> drv = runCommand "huh" { outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; outputHashAlgo = "sha256"; outputHashType = "flat"; } "touch $out"

nix-repl> drv.inputDerivation
«derivation /nix/store/d8mjs6cmmvsr1fv7psm6imis5pmh9bcs-huh.drv»

nix-repl> :b drv.inputDerivation
error: fixed output derivation 'huh' is not allowed to refer to other store paths.
       You may need to use the 'unsafeDiscardReferences' derivation attribute, see the manual for more details.
```

Fixes: https://github.com/NixOS/nixpkgs/issues/304209
2024-04-15 00:52:28 -07:00
..
builder.sh
check-meta.nix stdenv/check-meta: Fix error message for disallowed unfree packages 2024-04-10 16:15:24 +01:00
common-path.nix stdenv/common-path.nix: move to stdenv/generic/ 2022-07-29 18:24:00 -04:00
default-builder.sh treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
default.nix make-derivation.nix: Return mkDerivation as an attribute 2024-03-11 17:06:02 +01:00
make-derivation.nix stdenv: make inputDerivation never fixed-output 2024-04-15 00:52:28 -07:00
meta-types.nix stdenv/check-meta: Use bespoke type checking 2023-12-26 15:14:42 +13:00
setup.sh Merge #286721: stdenv: fix rare tar.xz decompression issues 2024-02-17 08:45:01 +01:00