1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/test
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
..
auto-patchelf-hook
buildFHSEnv
cc-wrapper
check-by-name nixpkgs-check-by-name: 0.1.0 -> 0.1.1 2024-04-10 15:11:05 +00:00
checkpointBuild
coq
cross
cuda
cue
dhall
dotnet
haskell
hooks
install-shell-files
ld-library-path
macos-sierra-shared
make-binary-wrapper
make-hardcode-gsettings-patch
make-wrapper
nixos-functions
php
release
simple
stdenv stdenv: make inputDerivation never fixed-output 2024-04-15 00:52:28 -07:00
stdenv-inputs
substitute
systemd
texlive tests.texlive.context: check that the PDF has been created 2024-03-29 13:04:00 +00:00
top-level
vim
config.nix
default.nix llvmPackages_9: remove due to age 2024-04-08 22:39:53 -07:00
kernel.nix
overriding.nix