aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
committerMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
commit80d90d9b204f7c17912740f9f414fe5d59f293ba (patch)
tree5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix
parent3a31a84c7d3e589035ad08499206aac44a81f424 (diff)
parent83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff)
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix29
1 files changed, 27 insertions, 2 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix
index f24358676dd7..ee3609783c29 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/electron/generic.nix
@@ -1,4 +1,19 @@
-{ stdenv, libXScrnSaver, makeWrapper, fetchurl, wrapGAppsHook, glib, gtk3, unzip, atomEnv, libuuid, at-spi2-atk, at-spi2-core, libdrm, mesa }:
+{ stdenv
+, libXScrnSaver
+, makeWrapper
+, fetchurl
+, wrapGAppsHook
+, glib
+, gtk3
+, unzip
+, atomEnv
+, libuuid
+, at-spi2-atk
+, at-spi2-core
+, libdrm
+, mesa
+, libxkbcommon
+}:
version: hashes:
let
@@ -18,6 +33,11 @@ let
sha256 = hash;
};
+ headersFetcher = vers: hash: fetchurl {
+ url = "https://atom.io/download/electron/v${vers}/node-v${vers}-headers.tar.gz";
+ sha256 = hash;
+ };
+
tags = {
i686-linux = "linux-ia32";
x86_64-linux = "linux-x64";
@@ -32,9 +52,14 @@ let
common = platform: {
inherit name version meta;
src = fetcher version (get tags platform) (get hashes platform);
+ passthru.headers = headersFetcher version hashes.headers;
};
- electronLibPath = with stdenv.lib; makeLibraryPath ([ libuuid at-spi2-atk at-spi2-core ] ++ optionals (! versionOlder version "9.0.0") [ libdrm mesa ]);
+ electronLibPath = with stdenv.lib; makeLibraryPath (
+ [ libuuid at-spi2-atk at-spi2-core ]
+ ++ optionals (! versionOlder version "9.0.0") [ libdrm mesa ]
+ ++ optionals (! versionOlder version "11.0.0") [ libxkbcommon ]
+ );
linux = {
buildInputs = [ glib gtk3 ];