uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
82
pkgs/development/tools/react-native-debugger/default.nix
Normal file
82
pkgs/development/tools/react-native-debugger/default.nix
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
{ 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
|
||||
}:
|
||||
|
||||
let
|
||||
rpath = lib.makeLibraryPath [
|
||||
cairo
|
||||
stdenv.cc.cc
|
||||
gdk-pixbuf
|
||||
fontconfig
|
||||
pango
|
||||
atk
|
||||
gtk3
|
||||
glib
|
||||
freetype
|
||||
dbus
|
||||
nss
|
||||
nspr
|
||||
alsa-lib
|
||||
cups
|
||||
expat
|
||||
udev
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
|
||||
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.12.1";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/jhen0409/react-native-debugger/releases/download/v${version}/rn-debugger-linux-x64.zip";
|
||||
sha256 = "sha256-DzDZmZn45gpZb/fkSssb0PtR7EVyBk44IjC57beg0RM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
buildCommand = ''
|
||||
shopt -s extglob
|
||||
mkdir -p $out
|
||||
unzip $src -d $out
|
||||
|
||||
mkdir $out/{lib,bin,share}
|
||||
mv $out/{libEGL,libGLESv2,libvk_swiftshader,libffmpeg}.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" "Debugger" ];
|
||||
};
|
||||
|
||||
meta = with 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; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue