about summary refs log tree commit diff
path: root/pkgs/development/tools/react-native-debugger/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/react-native-debugger/default.nix')
-rw-r--r--pkgs/development/tools/react-native-debugger/default.nix41
1 files changed, 37 insertions, 4 deletions
diff --git a/pkgs/development/tools/react-native-debugger/default.nix b/pkgs/development/tools/react-native-debugger/default.nix
index 967c5541991c2..6909c59a92b39 100644
--- a/pkgs/development/tools/react-native-debugger/default.nix
+++ b/pkgs/development/tools/react-native-debugger/default.nix
@@ -1,5 +1,31 @@
-{ lib, stdenv, fetchurl, unzip, cairo, xorg, gdk-pixbuf, fontconfig, pango, gnome, atk, at-spi2-atk, at-spi2-core
-, gtk3, glib, freetype, dbus, nss, nspr, alsa-lib, cups, expat, udev, makeDesktopItem
+{ lib
+, stdenv
+, fetchurl
+, unzip
+, cairo
+, xorg
+, gdk-pixbuf
+, fontconfig
+, pango
+, gnome
+, atk
+, at-spi2-atk
+, at-spi2-core
+, gtk3
+, glib
+, freetype
+, dbus
+, nss
+, nspr
+, alsa-lib
+, cups
+, expat
+, udev
+, makeDesktopItem
+, libdrm
+, libxkbcommon
+, mesa
+, makeWrapper
 }:
 
 let
@@ -22,6 +48,9 @@ let
     udev
     at-spi2-atk
     at-spi2-core
+    libdrm
+    libxkbcommon
+    mesa
 
     xorg.libX11
     xorg.libXcursor
@@ -36,7 +65,8 @@ let
     xorg.libXrender
     xorg.libXScrnSaver
   ];
-in stdenv.mkDerivation rec {
+in
+stdenv.mkDerivation rec {
   pname = "react-native-debugger";
   version = "0.13.0";
   src = fetchurl {
@@ -44,7 +74,7 @@ in stdenv.mkDerivation rec {
     sha256 = "sha256-/uVXMVrVS7n4/mqz6IlKkk63hy67fn9KRjZ1wP5MHB0=";
   };
 
-  nativeBuildInputs = [ unzip ];
+  nativeBuildInputs = [ makeWrapper unzip ];
   buildCommand = ''
     shopt -s extglob
     mkdir -p $out
@@ -59,6 +89,9 @@ in stdenv.mkDerivation rec {
       --set-rpath ${rpath}:$out/lib \
       $out/share/react-native-debugger
 
+    wrapProgram $out/share/react-native-debugger \
+      --add-flags --no-sandbox
+
     ln -s $out/share/react-native-debugger $out/bin/react-native-debugger
 
     install -Dm644 "${desktopItem}/share/applications/"* \