From 347f44d6727bac56f3ea304d5838755b66078090 Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Tue, 6 Sep 2022 19:45:53 -0700 Subject: [PATCH] quick-lint-js: work around CMake bug causing missing libstdc++.so.6 quick-lint-js fails to run after installation: $ quick-lint-js --version quick-lint-js: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Cause: https://github.com/NixOS/nixpkgs/pull/108496#issuecomment-1192083379 Work around this error. --- pkgs/development/tools/quick-lint-js/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/quick-lint-js/default.nix b/pkgs/development/tools/quick-lint-js/default.nix index 9425a04bbcb5..b74eddd6a75e 100644 --- a/pkgs/development/tools/quick-lint-js/default.nix +++ b/pkgs/development/tools/quick-lint-js/default.nix @@ -15,6 +15,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ninja ]; doCheck = true; + # Temporary workaround for https://github.com/NixOS/nixpkgs/pull/108496#issuecomment-1192083379 + cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ]; + passthru.tests = { version = testers.testVersion { package = quick-lint-js; }; };