nixpkgs/pkgs/applications/misc/robomongo/default.nix

78 lines
2.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig,
2017-04-07 11:40:27 +00:00
freetype, xkeyboard_config, makeDesktopItem, makeWrapper }:
stdenv.mkDerivation rec {
pname = "robomongo";
version = "0.9.0";
src = fetchurl {
url = "https://download.robomongo.org/${version}/linux/robomongo-${version}-linux-x86_64-0786489.tar.gz";
sha256 = "1q8ahdz3afcw002p8dl2pybzkq4srk6bnikrz216yx1gswivdcad";
};
icon = fetchurl {
url = "https://github.com/Studio3T/robomongo/raw/${version}/trash/install/linux/robomongo.png";
sha256 = "15li8536x600kkfkb3h6mw7y0f2ljkv951pc45dpiw036vldibv2";
};
desktopItem = makeDesktopItem {
name = "robomongo";
exec = "robomongo";
icon = icon;
comment = "Query GUI for mongodb";
desktopName = "Robomongo";
genericName = "MongoDB management tool";
categories = "Development;IDE;mongodb;";
};
nativeBuildInputs = [makeWrapper];
2021-01-15 05:42:41 +00:00
ldLibraryPath = lib.makeLibraryPath [
2017-04-07 10:19:19 +00:00
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
installPhase = ''
BASEDIR=$out/lib/robomongo
2015-03-24 15:31:27 +00:00
mkdir -p $BASEDIR/bin
cp bin/* $BASEDIR/bin
mkdir -p $BASEDIR/lib
cp -r lib/* $BASEDIR/lib
2017-04-07 10:19:19 +00:00
mkdir -p $out/share/applications
cp $desktopItem/share/applications/* $out/share/applications
mkdir -p $out/share/icons
cp ${icon} $out/share/icons/robomongo.png
2017-04-07 11:40:27 +00:00
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robomongo
2017-04-07 11:40:27 +00:00
mkdir $out/bin
2017-04-07 11:40:27 +00:00
makeWrapper $BASEDIR/bin/robomongo $out/bin/robomongo \
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
'';
2017-04-07 11:40:27 +00:00
meta = {
homepage = "https://robomongo.org/";
description = "Query GUI for mongodb";
2021-01-15 05:42:41 +00:00
platforms = lib.intersectLists lib.platforms.linux lib.platforms.x86_64;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.eperuffo ];
};
}