17 stdenv.mkDerivation rec {
23 url = "https://github.com/Studio3T/robomongo/releases/download/v${version}/robo3t-${version}-linux-x86_64-${rev}.tar.gz";
24 sha256 = "sha256-pH4q/O3bq45ZZn+s/12iScd0WbfkcLjK4MBdVCMXK00=";
28 url = "https://github.com/Studio3T/robomongo/raw/${rev}/install/macosx/robomongo.iconset/icon_128x128.png";
29 sha256 = "sha256-2PkUxBq2ow0wl09k8B6LJJUQ+y4GpnmoAeumKN1u5xg=";
32 desktopItem = makeDesktopItem {
36 comment = "Query GUI for mongodb";
37 desktopName = "Robo3T";
38 genericName = "MongoDB management tool";
39 categories = [ "Development" "IDE" ];
42 nativeBuildInputs = [ makeWrapper ];
44 ldLibraryPath = lib.makeLibraryPath [
65 BASEDIR=$out/lib/robo3t
71 cp -r lib/* $BASEDIR/lib
73 mkdir -p $out/share/applications
74 cp $desktopItem/share/applications/* $out/share/applications
76 mkdir -p $out/share/icons
77 cp ${icon} $out/share/icons/robomongo.png
79 patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robo3t
83 makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
84 --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
85 --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
91 homepage = "https://robomongo.org/";
92 description = "Query GUI for mongodb. Formerly called Robomongo";
93 platforms = [ "x86_64-linux" ];
94 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
95 license = licenses.gpl3Only;
96 maintainers = with maintainers; [ eperuffo ];