diff options
author | Marek Mahut <marek.mahut@gmail.com> | 2020-06-02 09:54:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 09:54:56 +0200 |
commit | 3b2c06909ea24573023a0cef192ab6b4d2936288 (patch) | |
tree | 54ccc357acf777815a0ed6ba9d5f08d3c99feb8a /pkgs/development/tools | |
parent | f0d985cf9ca2e0b735b4fe52fe69c5ac6facfbed (diff) | |
parent | 0045730c57d7d705dcc568c6e420dc6a226d1266 (diff) | |
download | nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.tar nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.tar.gz nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.tar.bz2 nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.tar.lz nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.tar.xz nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.tar.zst nixlib-3b2c06909ea24573023a0cef192ab6b4d2936288.zip |
Merge pull request #88551 from prusnak/electron-9
electron_9: init at 9.0.0
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/electron/default.nix | 10 | ||||
-rw-r--r-- | pkgs/development/tools/electron/generic.nix | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/tools/electron/default.nix b/pkgs/development/tools/electron/default.nix index 3d0c9afd33e9..9ed0d27894e3 100644 --- a/pkgs/development/tools/electron/default.nix +++ b/pkgs/development/tools/electron/default.nix @@ -1,4 +1,4 @@ -{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, glib, gtk3, unzip, atomEnv, libuuid, at-spi2-atk, at-spi2-core }@args: +{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, glib, gtk3, unzip, atomEnv, libuuid, at-spi2-atk, at-spi2-core, libdrm, mesa }@args: let mkElectron = import ./generic.nix args; @@ -43,4 +43,12 @@ in armv7l-linux = "14b67e8a41ce8882442816a2db0eee69fac141e359911704002beb7063aa0eff"; aarch64-linux = "1d89a75fff3b690efe1295fe6f91225c4fa64f3c22c6acddec895d54e1040b4d"; }; + + electron_9 = mkElectron "9.0.0" { + x86_64-linux = "03c69d66ae8784edcc6a4b8081eb4e07da802035a6257fb6e2260a456371224f"; + x86_64-darwin = "86096d2ecff0698957bfbbe8a8d56c7f9ed9abe7e5a5bfe84a8f4af0635625e1"; + i686-linux = "67ea9e04db5a709b10d2f101d977e803b5f5da9e9573cbcc7bce362b1a9406d7"; + armv7l-linux = "7917624b81318197da52de04073e07c4b2d3947737d4103f647a8abc907600c0"; + aarch64-linux = "e3dd2e15cfd346a59c69ff4b0b234daf5bb06790b508ae0056a55c17eef78a9e"; + }; } diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix index d5d257ae6444..04b610dde1c5 100644 --- a/pkgs/development/tools/electron/generic.nix +++ b/pkgs/development/tools/electron/generic.nix @@ -1,4 +1,4 @@ -{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, glib, gtk3, unzip, atomEnv, libuuid, at-spi2-atk, at-spi2-core}: +{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, glib, gtk3, unzip, atomEnv, libuuid, at-spi2-atk, at-spi2-core, libdrm, mesa }: version: hashes: let @@ -33,6 +33,8 @@ let src = fetcher version (get tags platform) (get hashes platform); }; + electronLibPath = stdenv.lib.makeLibraryPath ([ libuuid at-spi2-atk at-spi2-core ] ++ stdenv.lib.optionals (version > "9") [ libdrm mesa ]); + linux = { buildInputs = [ glib gtk3 ]; @@ -56,7 +58,7 @@ let postFixup = '' patchelf \ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - --set-rpath "${atomEnv.libPath}:${stdenv.lib.makeLibraryPath [ libuuid at-spi2-atk at-spi2-core ]}:$out/lib/electron" \ + --set-rpath "${atomEnv.libPath}:${electronLibPath}:$out/lib/electron" \ $out/lib/electron/electron wrapProgram $out/lib/electron/electron \ |