electron: add gtk2 dependency (#43379)

This commit is contained in:
gnidorah 2018-07-14 23:06:41 +03:00 committed by xeji
parent b61825e856
commit 1727513d4d

View file

@ -1,4 +1,4 @@
{ stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv }:
{ stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, gtk2 }:
let
version = "1.8.2";
@ -47,7 +47,7 @@ let
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${atomEnv.libPath}:$out/lib/electron" \
--set-rpath "${atomEnv.libPath}:${gtk2}/lib:$out/lib/electron" \
$out/lib/electron/electron
wrapProgram $out/lib/electron/electron \