2018-05-01 18:39:03 +02:00
|
|
|
{ stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig, libGL,
|
2017-09-28 17:58:42 +02:00
|
|
|
freetype, xkeyboard_config, makeDesktopItem, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "robo3t";
|
2019-08-30 05:24:41 +02:00
|
|
|
version = "1.3.1";
|
|
|
|
rev = "7419c406";
|
2017-09-28 17:58:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-30 05:24:41 +02:00
|
|
|
url = "https://download-test.robomongo.org/linux/robo3t-${version}-linux-x86_64-${rev}.tar.gz";
|
|
|
|
sha256 = "1mp5i8iahd4qkwgi5ix98hlg17ivw5da27n0drnr0wk458wn99hi";
|
2017-09-28 17:58:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
icon = fetchurl {
|
|
|
|
url = "https://github.com/Studio3T/robomongo/raw/${version}/trash/install/linux/robomongo.png";
|
|
|
|
sha256 = "15li8536x600kkfkb3h6mw7y0f2ljkv951pc45dpiw036vldibv2";
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
2017-10-24 21:12:01 +02:00
|
|
|
name = "robo3t";
|
2017-09-28 17:58:42 +02:00
|
|
|
exec = "robo3t";
|
|
|
|
icon = icon;
|
|
|
|
comment = "Query GUI for mongodb";
|
|
|
|
desktopName = "Robo3T";
|
|
|
|
genericName = "MongoDB management tool";
|
2020-05-06 14:56:09 +02:00
|
|
|
categories = "Development;IDE;";
|
2017-09-28 17:58:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
|
|
|
|
|
|
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
|
2018-05-01 18:39:03 +02:00
|
|
|
libGL
|
2017-09-28 17:58:42 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
BASEDIR=$out/lib/robo3t
|
|
|
|
|
|
|
|
mkdir -p $BASEDIR/bin
|
|
|
|
cp bin/* $BASEDIR/bin
|
|
|
|
|
|
|
|
mkdir -p $BASEDIR/lib
|
|
|
|
cp -r lib/* $BASEDIR/lib
|
|
|
|
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp ${icon} $out/share/icons/robomongo.png
|
|
|
|
|
2018-03-12 23:37:17 +01:00
|
|
|
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robo3t
|
2017-09-28 17:58:42 +02:00
|
|
|
|
|
|
|
mkdir $out/bin
|
|
|
|
|
|
|
|
makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
|
|
|
|
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
|
|
|
|
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://robomongo.org/";
|
2017-09-28 17:58:42 +02:00
|
|
|
description = "Query GUI for mongodb";
|
2018-03-12 23:37:17 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2017-09-28 17:58:42 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eperuffo ];
|
|
|
|
};
|
|
|
|
}
|