72b65981f9
This reverts commit 5e3986f59c
. This
un-implements RFC 92 but fixes the critical bug #9052 which many people
are hitting. This is a decent stop-gap until a minimal reproduction of
that bug is found and a proper fix can be made.
Mostly fixed #9052, but I would like to leave that issue open until we
have a regression test, so I can then properly fix the bug (unbreaking
RFC 92) later.
(cherry picked from commit 8440afbed756254784d9fea3eaab06649dffd390)
22 lines
793 B
Bash
22 lines
793 B
Bash
#!/usr/bin/env bash
|
|
|
|
source common.sh
|
|
|
|
# In the corresponding nix file, we have two derivations: the first, named `hello`,
|
|
# is a normal recursive derivation, while the second, named dependent, has the
|
|
# new outputHashMode "text". Note that in "dependent", we don't refer to the
|
|
# build output of `hello`, but only to the path of the drv file. For this reason,
|
|
# we only need to:
|
|
#
|
|
# - instantiate `hello`
|
|
# - build `producingDrv`
|
|
# - check that the path of the output coincides with that of the original derivation
|
|
|
|
out1=$(nix build -f ./text-hashed-output.nix hello --no-link)
|
|
|
|
clearStore
|
|
|
|
drvDep=$(nix-instantiate ./text-hashed-output.nix -A producingDrv)
|
|
|
|
expectStderr 1 nix build "${drvDep}^out^out" --no-link | grepQuiet "Building dynamic derivations in one shot is not yet implemented"
|