bazel-watcher.bazel: fix tests attribute evaluation

Without the change evaluation fails as:

    $ nix build --no-link -f. bazel-watcher.bazel.tests
    error:
       error: attribute 'optionalSttrs' missing
This commit is contained in:
Sergei Trofimovich 2023-12-28 20:11:24 +00:00
parent ae9397e83b
commit 2a84df1eca

View File

@ -287,7 +287,7 @@ stdenv.mkDerivation rec {
sha256 = "1mm4awx6sa0myiz9j4hwp71rpr7yh8vihf3zm15n2ii6xb82r31k";
};
in (lib.optionalSttrs (!stdenv.hostPlatform.isDarwin) {
in (lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
# `extracted` doesnt work on darwin
shebang = callPackage ../shebang-test.nix { inherit runLocal extracted bazelTest distDir; bazel = bazel_self;};
}) // {