Skip to content

Commit f480268

Browse files
authored
Merge pull request #1919 from cachix/fix-tests
tests: fix failing tests
2 parents 72721c7 + 50ec393 commit f480268

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

devenv/src/flake.tmpl.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@
120120
lib.concatMapAttrs
121121
(name: option:
122122
if lib.isOption option then
123-
if lib.isType "output" option || lib.isType "outputOf" option then {
124-
${name} = config.${name};
125-
} else { }
123+
let typeName = option.type.name or "";
124+
in
125+
if builtins.elem typeName [ "output" "outputOf" ] then
126+
{ ${name} = config.${name}; }
127+
else { }
126128
else
127129
let v = build option config.${name};
128130
in if v != { } then {

tests/direnv/.test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -xeuo pipefail
66

77
# Install direnv
8-
export PATH="$(nix build nixpkgs#direnv --print-out-paths --no-out-link)/bin:$PATH"
8+
export PATH="$(nix build nixpkgs#direnv --print-out-paths)/bin:$PATH"
99

1010
export TMPDIR=$(mktemp -d)
1111
export XDG_CONFIG_HOME=${TMPDIR}/config

0 commit comments

Comments
 (0)