Merge pull request #127613 from Artturin/robomongo

authored by Sandro and committed by GitHub 35677fc0 5f3ebbc6

+24 -84
+24 -7
pkgs/applications/misc/robo3t/default.nix
··· 1 - { lib, stdenv, fetchurl, curl, zlib, glib, xorg, dbus, fontconfig, libGL, 2 - freetype, xkeyboard_config, makeDesktopItem, makeWrapper }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , curl 5 + , zlib 6 + , glib 7 + , xorg 8 + , dbus 9 + , fontconfig 10 + , libGL 11 + , freetype 12 + , xkeyboard_config 13 + , makeDesktopItem 14 + , makeWrapper 15 + }: 3 16 4 17 let 5 18 curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; }; ··· 30 43 categories = "Development;IDE;"; 31 44 }; 32 45 33 - nativeBuildInputs = [makeWrapper]; 46 + nativeBuildInputs = [ makeWrapper ]; 34 47 35 48 ldLibraryPath = lib.makeLibraryPath [ 36 49 stdenv.cc.cc ··· 51 64 ]; 52 65 53 66 installPhase = '' 67 + runHook preInstall 68 + 54 69 BASEDIR=$out/lib/robo3t 55 70 56 71 mkdir -p $BASEDIR/bin ··· 72 87 makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \ 73 88 --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \ 74 89 --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb 90 + 91 + runHook postInstall 75 92 ''; 76 93 77 - meta = { 94 + meta = with lib; { 78 95 homepage = "https://robomongo.org/"; 79 - description = "Query GUI for mongodb"; 96 + description = "Query GUI for mongodb. Formerly called Robomongo"; 80 97 platforms = [ "x86_64-linux" ]; 81 - license = lib.licenses.gpl3; 82 - maintainers = [ lib.maintainers.eperuffo ]; 98 + license = licenses.gpl3Only; 99 + maintainers = with maintainers; [ eperuffo ]; 83 100 }; 84 101 }
-77
pkgs/applications/misc/robomongo/default.nix
··· 1 - { lib, stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig, 2 - freetype, xkeyboard_config, makeDesktopItem, makeWrapper }: 3 - 4 - stdenv.mkDerivation rec { 5 - pname = "robomongo"; 6 - version = "0.9.0"; 7 - 8 - src = fetchurl { 9 - url = "https://download.robomongo.org/${version}/linux/robomongo-${version}-linux-x86_64-0786489.tar.gz"; 10 - sha256 = "1q8ahdz3afcw002p8dl2pybzkq4srk6bnikrz216yx1gswivdcad"; 11 - }; 12 - 13 - icon = fetchurl { 14 - url = "https://github.com/Studio3T/robomongo/raw/${version}/trash/install/linux/robomongo.png"; 15 - sha256 = "15li8536x600kkfkb3h6mw7y0f2ljkv951pc45dpiw036vldibv2"; 16 - }; 17 - 18 - desktopItem = makeDesktopItem { 19 - name = "robomongo"; 20 - exec = "robomongo"; 21 - icon = icon; 22 - comment = "Query GUI for mongodb"; 23 - desktopName = "Robomongo"; 24 - genericName = "MongoDB management tool"; 25 - categories = "Development;IDE;mongodb;"; 26 - }; 27 - 28 - nativeBuildInputs = [makeWrapper]; 29 - 30 - ldLibraryPath = lib.makeLibraryPath [ 31 - stdenv.cc.cc 32 - zlib 33 - glib 34 - xorg.libXi 35 - xorg.libxcb 36 - xorg.libXrender 37 - xorg.libX11 38 - xorg.libSM 39 - xorg.libICE 40 - xorg.libXext 41 - dbus 42 - fontconfig 43 - freetype 44 - ]; 45 - 46 - installPhase = '' 47 - BASEDIR=$out/lib/robomongo 48 - 49 - mkdir -p $BASEDIR/bin 50 - cp bin/* $BASEDIR/bin 51 - 52 - mkdir -p $BASEDIR/lib 53 - cp -r lib/* $BASEDIR/lib 54 - 55 - mkdir -p $out/share/applications 56 - cp $desktopItem/share/applications/* $out/share/applications 57 - 58 - mkdir -p $out/share/icons 59 - cp ${icon} $out/share/icons/robomongo.png 60 - 61 - patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robomongo 62 - 63 - mkdir $out/bin 64 - 65 - makeWrapper $BASEDIR/bin/robomongo $out/bin/robomongo \ 66 - --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \ 67 - --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb 68 - ''; 69 - 70 - meta = { 71 - homepage = "https://robomongo.org/"; 72 - description = "Query GUI for mongodb"; 73 - platforms = lib.intersectLists lib.platforms.linux lib.platforms.x86_64; 74 - license = lib.licenses.gpl3; 75 - maintainers = [ lib.maintainers.eperuffo ]; 76 - }; 77 - }