2017-04-07 10:19:19 +00:00
|
|
|
{ stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig, freetype, xkeyboard_config, makeWrapper }:
|
2013-11-25 02:29:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-04-07 10:19:19 +00:00
|
|
|
name = "robomongo-0.9.0";
|
2013-11-25 02:29:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-04-07 10:19:19 +00:00
|
|
|
url = "https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz";
|
|
|
|
sha256 = "1q8ahdz3afcw002p8dl2pybzkq4srk6bnikrz216yx1gswivdcad";
|
2013-11-25 02:29:37 +00:00
|
|
|
};
|
|
|
|
|
2017-04-07 10:19:19 +00:00
|
|
|
ldLibraryPath = stdenv.lib.makeLibraryPath [
|
|
|
|
stdenv.cc.cc
|
|
|
|
zlib
|
|
|
|
glib
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libICE
|
|
|
|
xorg.libXext
|
|
|
|
dbus
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
];
|
2015-03-24 15:31:27 +00:00
|
|
|
|
2017-04-07 10:19:19 +00:00
|
|
|
buildInputs = [makeWrapper];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/* $out/bin
|
2015-03-24 15:31:27 +00:00
|
|
|
|
2017-04-07 10:19:19 +00:00
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -r lib/* $out/lib
|
2013-11-25 02:29:37 +00:00
|
|
|
|
2017-04-07 10:19:19 +00:00
|
|
|
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/robomongo
|
|
|
|
|
|
|
|
wrapProgram $out/bin/robomongo \
|
|
|
|
--suffix LD_LIBRARY_PATH : $ldLibraryPath \
|
|
|
|
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
|
|
|
'';
|
2013-11-25 02:29:37 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-04-07 10:19:19 +00:00
|
|
|
homepage = "https://robomongo.org/";
|
2013-11-25 02:29:37 +00:00
|
|
|
description = "Query GUI for mongodb";
|
2017-04-07 10:19:19 +00:00
|
|
|
platforms = stdenv.lib.intersectLists stdenv.lib.platforms.linux stdenv.lib.platforms.x86_64;
|
2013-11-25 02:29:37 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2017-04-07 10:19:19 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eperuffo ];
|
2013-11-25 02:29:37 +00:00
|
|
|
};
|
|
|
|
}
|