Skip to content

Commit

Permalink
fix(nix): 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: NixOS/nixpkgs#108496 (comment)

Work around this error.

This workaround has landed in Nixpkgs upstream:
NixOS/nixpkgs#190091
  • Loading branch information
strager committed Sep 22, 2022
1 parent f39a34b commit 8c088ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-nix-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
- name: install
run: nix-env -f . -i

# TODO(#792): Re-enable when Nixpkgs fixes things.
#- name: test executable
# run: cd / && quick-lint-js --help
- name: test executable
run: cd / && quick-lint-js --help

# quick-lint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
Expand Down
3 changes: 3 additions & 0 deletions dist/nix/quick-lint-js.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ mkDerivation {
doCheck = doCheck;
dontFixCmake = dontFixCmake;

# Temporary workaround for https://github.com/NixOS/nixpkgs/pull/108496#issuecomment-1192083379
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ];

meta = with lib; {
description = "quick-lint-js finds bugs in JavaScript programs";
homepage = "https://github.com/strager/quick-lint-js";
Expand Down

0 comments on commit 8c088ea

Please sign in to comment.