diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2020-04-11 12:25:51 +0200 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2020-04-11 21:56:31 +0200 |
commit | 96f52cb22b20d040c3498008b1bcbe75f89a11e9 (patch) | |
tree | d2dce7629a0d1d11983114d1b5dbe24bfd73448d /pkgs/development/tools | |
parent | 3abd151f8ebcf84576687a68e4e8dc47950000a1 (diff) | |
download | nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.tar nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.tar.gz nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.tar.bz2 nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.tar.lz nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.tar.xz nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.tar.zst nixlib-96f52cb22b20d040c3498008b1bcbe75f89a11e9.zip |
electron: fix wrapGAppsHook usage
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/electron/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/tools/electron/generic.nix | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/tools/electron/default.nix b/pkgs/development/tools/electron/default.nix index d23c5a663e62..9897405d06f9 100644 --- a/pkgs/development/tools/electron/default.nix +++ b/pkgs/development/tools/electron/default.nix @@ -1,4 +1,4 @@ -{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, 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 }@args: let mkElectron = import ./generic.nix args; diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix index 9bcc4dd6ff31..018625da456a 100644 --- a/pkgs/development/tools/electron/generic.nix +++ b/pkgs/development/tools/electron/generic.nix @@ -1,4 +1,4 @@ -{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, 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}: version: hashes: let @@ -34,7 +34,7 @@ let }; linux = { - buildInputs = [ gtk3 ]; + buildInputs = [ glib gtk3 ]; nativeBuildInputs = [ unzip @@ -44,13 +44,16 @@ let dontWrapGApps = true; # electron is in lib, we need to wrap it manually - buildCommand = '' + dontUnpack = true; + dontBuild = true; + + installPhase = '' mkdir -p $out/lib/electron $out/bin unzip -d $out/lib/electron $src ln -s $out/lib/electron/electron $out/bin + ''; - fixupPhase - + 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" \ |