nixpkgs/pkgs/applications
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
..
accessibility contrast: init at 0.0.2 2019-10-31 09:46:15 -04:00
audio treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
backup deja-dup: 40.4 -> 40.6 2019-12-22 22:07:13 -08:00
blockchains ledger-live-desktop: 1.18.2 -> 1.19.2 2019-12-22 12:22:27 +01:00
display-managers lightdm: add patch to fix wayland sessions 2019-12-15 01:42:19 -05:00
editors treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
gis Merge pull request #75036 from sikmir/oom 2019-12-21 17:30:50 +01:00
graphics treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
kde kontact: fix build 2019-12-26 04:33:41 +00:00
misc simplenote: fix libstdc++ error 2019-12-26 22:01:36 +00:00
networking newsboat: fetch from vcs (#76175) 2019-12-25 22:03:49 +02:00
office Merge pull request #76363 from r-ryantm/auto-update/pympress 2019-12-25 06:09:46 -05:00
qubes/qubes-core-vchan-xen qubes-core-vchan-xen: init at 4.1.2 2019-10-02 15:26:53 +00:00
radio gr-osmosdr: 2018-08-15 -> 0.1.5 2019-12-24 07:51:37 +01:00
science Merge pull request #76541 from veprbl/pr/root_python_wrap 2019-12-26 12:29:12 -05:00
search catfish: move to pkgs/desktops/xfce/applications 2019-12-23 07:54:59 -03:00
system/monitor monitor: 0.6.1 -> 0.6.2 2019-12-22 23:21:15 -05:00
version-management treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
video treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
virtualization Merge pull request #76455 from r-ryantm/auto-update/x11docker 2019-12-25 14:00:07 +01:00
window-managers treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00