Created
July 1, 2019 12:57
-
-
Save Jomik/2b7b875f27cff3bc16a280cafde327d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchurl, dpkg | |
, desktop-file-utils, gnome2, hicolor-icon-theme | |
, libappindicator-gtk2, libnotify, libXtst, nss | |
, gtk2, atk, cairo, gdk_pixbuf, glib, freetype, fontconfig | |
, dbus, libXi, libXcursor, libxcb, libXdamage, libXrandr | |
, libXcomposite, libXext, libXfixes, libXrender, libX11 | |
, libXScrnSaver, nspr, alsaLib, cups, expat | |
}: | |
let | |
inherit (gnome2) GConf pango; | |
inherit (stdenv.lib) makeLibraryPath; | |
in stdenv.mkDerivation rec { | |
pname = "nativescript-sidekick"; | |
version = "1.16.0.v2019.2.7.3"; | |
src = fetchurl { | |
url = "https://sk-cdn.nativescript.cloud/fusion/1.16.0-v.2019.2.7.3/linux/NativeScriptSidekick-amd64.deb"; | |
sha256 = "17znp7d5gpxgy5abpjc04n44xjhzgdbhq1gxb5c1v69l7gyi6c2h"; | |
}; | |
nativeBuildInputs = [ dpkg ]; | |
unpackPhase = '' | |
dpkg-deb -x $src . | |
''; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp -r "opt/NativeScript Sidekick" $out/opt | |
ln -s "$out/opt/NativeScript Sidekick" $out/bin/nssidekick | |
''; | |
preFixup = '' | |
prefix="$out/opt" | |
ln -s ${libxcb}/lib/libxcb.so.1 $prefix/libX11-xcb.so.1 | |
patchelf \ | |
--set-interpreter "${stdenv.cc.libc.out}/lib/ld-linux-x86-64.so.2" \ | |
--set-rpath "$prefix:${makeLibraryPath [ | |
desktop-file-utils GConf hicolor-icon-theme | |
libappindicator-gtk2 libnotify libXtst nss | |
gtk2 pango atk cairo gdk_pixbuf glib freetype fontconfig | |
dbus libXi libXcursor libXdamage libXrandr libXcomposite | |
libXext libXfixes libXrender libX11 libXScrnSaver nspr | |
alsaLib cups expat stdenv.cc.cc.lib | |
]}" \ | |
"$prefix/NativeScript Sidekick" | |
''; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gives error