mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
6d9885f20b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/react-native-debugger/versions
84 lines
2 KiB
Nix
84 lines
2 KiB
Nix
{ stdenv, fetchurl, unzip, cairo, xorg, gdk_pixbuf, fontconfig, pango, gnome2, atk, gtk2, glib
|
|
, freetype, dbus, nss, nspr, alsaLib, cups, expat, udev, makeDesktopItem
|
|
}:
|
|
|
|
let
|
|
rpath = stdenv.lib.makeLibraryPath [
|
|
cairo
|
|
stdenv.cc.cc
|
|
gdk_pixbuf
|
|
fontconfig
|
|
pango
|
|
atk
|
|
gtk2
|
|
glib
|
|
freetype
|
|
dbus
|
|
nss
|
|
nspr
|
|
alsaLib
|
|
cups
|
|
expat
|
|
udev
|
|
|
|
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 {
|
|
name = "react-native-debugger-${version}";
|
|
version = "0.9.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jhen0409/react-native-debugger/releases/download/v${version}/rn-debugger-linux-x64.zip";
|
|
sha256 = "0f1wvk1550z4imcs60sv229zllcxpykx4b60bw658idr1xc3c0ix";
|
|
};
|
|
|
|
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; {
|
|
homepage = https://github.com/jhen0409/react-native-debugger;
|
|
license = licenses.mit;
|
|
description = "The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools";
|
|
maintainers = with maintainers; [ ma27 ];
|
|
};
|
|
}
|