nixpkgs/pkgs
Robert Djubek cc2037307b
simplenote: fix libstdc++ error
Fixes a bug that was noticed during an automated version bump.

What was needed was to add an LD_LIBRARY_PATH entry for stdenv.cc.cc in
makeWrapper

```
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc ] }" \
```

The error as seen in developer tools console was:

```
/nix/store/d4b2xcpdf4y4hspbwrmjdz540m493894-simplenote-1.12.0/opt/Simplenote/resources/electron.asar/renderer/init.js:158 Unable to load preload script: /nix/store/d4b2xcpdf4y4hspbwrmjdz540m493894-simplenote-1.12.0/opt/Simplenote/resources/app.asar/desktop/preload.js
(anonymous) @ /nix/store/d4b2xcpdf4y4hspbwrmjdz540m493894-simplenote-1.12.0/opt/Simplenote/resources/electron.asar/renderer/init.js:158
/nix/store/d4b2xcpdf4y4hspbwrmjdz540m493894-simplenote-1.12.0/opt/Simplenote/resources/electron.asar/renderer/init.js:159 Error: libstdc++.so.6: cannot open shared object file: No such file or directory
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
    at Module.load (internal/modules/cjs/loader.js:602)
    at tryModuleLoad (internal/modules/cjs/loader.js:541)
    at Function.Module._load (internal/modules/cjs/loader.js:533)
    at Module.require (internal/modules/cjs/loader.js:640)
    at require (internal/modules/cjs/helpers.js:20)
    at Object.<anonymous> (/nix/store/d4b2xcpdf4y4hspbwrmjdz540m493894-simplenote-1.12.0/opt/Simplenote/resources/app.asar/node_modules/@paulcbetts/spellchecker/lib/spellchecker.js:3)
    at Object.<anonymous> (/nix/store/d4b2xcpdf4y4hspbwrmjdz540m493894-simplenote-1.12.0/opt/Simplenote/resources/app.asar/node_modules/@paulcbetts/spellchecker/lib/spellchecker.js:116)
```
To (help) anyone that may find have errors like this in the future:

makeWrapper requiring the makeLibraryPath with stdenv.cc.cc is fairly common for electron apps.
At least ones that use dpkg on prebuilt debian .deb files (my `bitwarden` derivation requires it, too) that use gappsWrapperArgs

Thanks @ryantm / r-ryantm and @worldofpeace :)

Reference: https://github.com/NixOS/nixpkgs/pull/76421#pullrequestreview-336359695
2019-12-26 22:01:36 +00:00
..
applications simplenote: fix libstdc++ error 2019-12-26 22:01:36 +00:00
build-support rustPlatform.fetchcargo: expose 2019-12-23 18:27:56 +00:00
common-updater
data Merge pull request #76192 from worldofpeace/pantheon-update-script 2019-12-22 18:56:13 -05:00
desktops Merge pull request #76348 from romildo/upd.mate 2019-12-26 08:07:11 -03:00
development texlab: fix macOS build (#76544) 2019-12-26 16:12:58 -05:00
games Merge pull request #76439 from r-ryantm/auto-update/tome4 2019-12-24 18:43:24 -05:00
misc treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
os-specific bpftool: fix build 2019-12-26 21:07:51 +01:00
servers Merge pull request #76355 from r-ryantm/auto-update/pdns-recursor 2019-12-26 07:56:25 -08:00
shells treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
stdenv allowInsecureDefaultPredicate: fix to use getName 2019-12-15 18:01:19 +00:00
test
tools Merge pull request #76442 from r-ryantm/auto-update/tigervnc 2019-12-26 20:31:01 +01:00
top-level texlab: fix macOS build (#76544) 2019-12-26 16:12:58 -05:00