From d1348a2477bdd9eec71ed2278e282a2a15431da8 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 27 Jan 2026 10:32:30 -0500 Subject: [PATCH] tests/functional: fix nix-shell fixed-output derivation test The test was checking for `$stdenv` but the `fixed` derivation doesn't actually have stdenv, it just has `FOO`. I've updated it to check the value of `FOO` instead. --- tests/functional/nix-shell.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/functional/nix-shell.sh b/tests/functional/nix-shell.sh index cdeea3268..3343d6195 100755 --- a/tests/functional/nix-shell.sh +++ b/tests/functional/nix-shell.sh @@ -280,9 +280,6 @@ assert (!(args ? inNixShell)); EOF nix-shell "$TEST_ROOT"/shell-ellipsis.nix --run "true" -# FIXME unclear why this (newly made) test is failing in this case. -if ! isTestOnNixOS; then - # `nix develop` should also work with fixed-output derivations - # shellcheck disable=SC2016 - nix develop -f "$shellDotNix" fixed -c bash -c '[[ -n $stdenv ]]' -fi +# `nix develop` should also work with fixed-output derivations +# shellcheck disable=SC2016 +nix develop -f "$shellDotNix" fixed -c bash -c '[[ $FOO == "was a fixed-output derivation" ]]'