Skip to content

Commit

Permalink
quick-lint-js: work around CMake bug causing missing libstdc++.so.6
Browse files Browse the repository at this point in the history
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: #108496 (comment)

Work around this error.
  • Loading branch information
strager committed Sep 7, 2022
1 parent cabd3cb commit 347f44d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/tools/quick-lint-js/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
};
Expand Down

0 comments on commit 347f44d

Please sign in to comment.