From c2ba8dc072dbd5067076e18401e32b88c1a2a746 Mon Sep 17 00:00:00 2001 From: david amick Date: Wed, 7 Jan 2026 13:34:22 -0800 Subject: [PATCH] crystal.buildCrystalPackage: fix installCheckPhase glob pattern The installCheckPhase uses `[ $f == $out/bin/*.dwarf ]` to skip .dwarf files, but when no .dwarf files exist, the glob doesn't expand and bash's `[` builtin fails with "unary operator expected". Switch to `[[ ]]` which handles glob patterns correctly without expansion. --- pkgs/development/compilers/crystal/build-package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/crystal/build-package.nix b/pkgs/development/compilers/crystal/build-package.nix index 7914b7d7771e..f115cae48916 100644 --- a/pkgs/development/compilers/crystal/build-package.nix +++ b/pkgs/development/compilers/crystal/build-package.nix @@ -196,7 +196,7 @@ stdenv.mkDerivation ( installCheckPhase = args.installCheckPhase or '' for f in $out/bin/*; do - if [ $f == $out/bin/*.dwarf ]; then + if [[ $f == *.dwarf ]]; then continue fi $f --help > /dev/null