18 stdenv.mkDerivation rec {
24 url = "https://github.com/Studio3T/robomongo/releases/download/v${version}/robo3t-${version}-linux-x86_64-${rev}.tar.gz";
25 sha256 = "sha256-pH4q/O3bq45ZZn+s/12iScd0WbfkcLjK4MBdVCMXK00=";
29 url = "https://github.com/Studio3T/robomongo/raw/${rev}/install/macosx/robomongo.iconset/icon_128x128.png";
30 sha256 = "sha256-2PkUxBq2ow0wl09k8B6LJJUQ+y4GpnmoAeumKN1u5xg=";
33 desktopItem = makeDesktopItem {
37 comment = "Query GUI for mongodb";
38 desktopName = "Robo3T";
39 genericName = "MongoDB management tool";
46 nativeBuildInputs = [ makeWrapper ];
48 ldLibraryPath = lib.makeLibraryPath [
69 BASEDIR=$out/lib/robo3t
75 cp -r lib/* $BASEDIR/lib
77 mkdir -p $out/share/applications
78 cp $desktopItem/share/applications/* $out/share/applications
80 mkdir -p $out/share/icons
81 cp ${icon} $out/share/icons/robomongo.png
83 patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robo3t
87 makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
88 --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
89 --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
95 homepage = "https://robomongo.org/";
96 description = "Query GUI for mongodb. Formerly called Robomongo";
97 platforms = [ "x86_64-linux" ];
98 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
99 license = licenses.gpl3Only;
100 maintainers = with maintainers; [ eperuffo ];
101 mainProgram = "robo3t";