|
1 | | -{ stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk, at_spi2_core, libxshmfence, |
| 1 | +{ stdenv, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk, at_spi2_core, libxshmfence, |
2 | 2 | libdrm, libxkbcommon, mesa }: |
3 | 3 |
|
4 | 4 | let |
|
7 | 7 |
|
8 | 8 | throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}"; |
9 | 9 |
|
10 | | - meta = with lib; { |
| 10 | + meta = with stdenv.lib; { |
11 | 11 | description = "Cross platform desktop application shell"; |
12 | 12 | homepage = https://github.com/electron/electron; |
13 | 13 | license = licenses.mit; |
|
48 | 48 |
|
49 | 49 | patchelf \ |
50 | 50 | --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ |
51 | | - --set-rpath "${atomEnv.libPath}:${lib.makeLibraryPath [ libuuid at-spi2-atk at_spi2_core ]}:$out/lib/electron" \ |
| 51 | + --set-rpath "${atomEnv.libPath}:${stdenv.lib.makeLibraryPath [ libuuid at-spi2-atk at_spi2_core ]}:$out/lib/electron" \ |
52 | 52 | $out/lib/electron/electron |
53 | 53 |
|
54 | 54 | wrapProgram $out/lib/electron/electron \ |
55 | | - --prefix LD_PRELOAD : ${lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \ |
56 | | - --prefix LD_PRELOAD : ${lib.makeLibraryPath [ libdrm ]}/libdrm.so.2 \ |
57 | | - --prefix LD_PRELOAD : ${lib.makeLibraryPath [ libxkbcommon ]}/libxkbcommon.so.0 \ |
58 | | - --prefix LD_PRELOAD : ${lib.makeLibraryPath [ mesa ]}/libgbm.so.1 \ |
59 | | - --prefix LD_PRELOAD : ${lib.makeLibraryPath [ libxshmfence ]}/libxshmfence.so.1 |
| 55 | + --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \ |
| 56 | + --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libdrm ]}/libdrm.so.2 \ |
| 57 | + --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libxkbcommon ]}/libxkbcommon.so.0 \ |
| 58 | + --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ mesa ]}/libgbm.so.1 \ |
| 59 | + --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libxshmfence ]}/libxshmfence.so.1 |
60 | 60 | ''; |
61 | 61 | }; |
62 | 62 |
|
|
0 commit comments