nixpkgs/pkgs/development/tools/react-native-debugger/default.nix
Maximilian Bosch 9842c4b107
treewide: update which packages I'm currently maintaining
Idea shamelessly stolen from 4e60b0efae.

I realized that I don't really know anymore where I'm listed as maintainer and what
I'm actually (co)-maintaining which means that I can't proactively take
care of packages I officially maintain.

As I don't have the time, energy and motivation to take care of stuff I
was interested in 1 or 2 years ago (or packaged for someone else in the
past), I decided that I make this explicit by removing myself from several
packages and adding myself in some other stuff I'm now interested in.

I've seen it several times now that people remove themselves from a
package without removing the package if it's unmaintained after that
which is why I figured that it's fine in my case as the affected pkgs
are rather low-prio and were pretty easy to maintain.
2019-12-26 15:27:47 +01:00

84 lines
2.0 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 {
pname = "react-native-debugger";
version = "0.9.10";
src = fetchurl {
url = "https://github.com/jhen0409/react-native-debugger/releases/download/v${version}/rn-debugger-linux-x64.zip";
sha256 = "158275sp37smc8lnrcbj56lp7aa6fj9gzb6fzjgz9r980qgzhia6";
};
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; [ ];
};
}