2019-05-22 11:03:39 +00:00
|
|
|
{ stdenv, fetchurl, unzip, cairo, xorg, gdk-pixbuf, fontconfig, pango, gnome2, atk, gtk2, glib
|
2018-07-17 20:11:16 +00:00
|
|
|
, freetype, dbus, nss, nspr, alsaLib, cups, expat, udev, makeDesktopItem
|
2018-04-02 10:29:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
rpath = stdenv.lib.makeLibraryPath [
|
|
|
|
cairo
|
|
|
|
stdenv.cc.cc
|
2019-05-22 11:03:39 +00:00
|
|
|
gdk-pixbuf
|
2018-04-02 10:29:14 +00:00
|
|
|
fontconfig
|
|
|
|
pango
|
|
|
|
atk
|
|
|
|
gtk2
|
|
|
|
glib
|
|
|
|
freetype
|
|
|
|
dbus
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
alsaLib
|
|
|
|
cups
|
|
|
|
expat
|
2018-07-17 20:11:16 +00:00
|
|
|
udev
|
2018-04-02 10:29:14 +00:00
|
|
|
|
|
|
|
gnome2.GConf
|
|
|
|
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXcomposite
|
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "react-native-debugger";
|
2019-07-02 20:32:53 +00:00
|
|
|
version = "0.9.10";
|
2018-04-02 10:29:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/jhen0409/react-native-debugger/releases/download/v${version}/rn-debugger-linux-x64.zip";
|
2019-07-02 20:32:53 +00:00
|
|
|
sha256 = "158275sp37smc8lnrcbj56lp7aa6fj9gzb6fzjgz9r980qgzhia6";
|
2018-04-02 10:29:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
buildCommand = ''
|
|
|
|
shopt -s extglob
|
|
|
|
mkdir -p $out
|
|
|
|
unzip $src -d $out
|
|
|
|
|
|
|
|
mkdir $out/{lib,bin,share}
|
|
|
|
mv $out/lib{node,ffmpeg}.so $out/lib
|
|
|
|
mv $out/!(lib|share|bin) $out/share
|
|
|
|
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
|
|
|
--set-rpath ${rpath}:$out/lib \
|
|
|
|
$out/share/React\ Native\ Debugger
|
|
|
|
|
|
|
|
ln -s $out/share/React\ Native\ Debugger $out/bin/React\ Native\ Debugger
|
|
|
|
|
|
|
|
install -Dm644 "${desktopItem}/share/applications/"* \
|
|
|
|
-t $out/share/applications/
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "rndebugger";
|
|
|
|
exec = "React\\ Native\\ Debugger";
|
|
|
|
desktopName = "React Native Debugger";
|
|
|
|
genericName = "React Native Debugger";
|
|
|
|
categories = "Development;Tools;";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jhen0409/react-native-debugger";
|
2018-04-02 10:29:14 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools";
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-04-02 10:29:14 +00:00
|
|
|
};
|
|
|
|
}
|