mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
robomongo: add desktop entry
This commit is contained in:
parent
b52a3d90fe
commit
668777f01d
@ -1,13 +1,7 @@
|
||||
{ stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig, freetype, xkeyboard_config, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "robomongo-0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz";
|
||||
sha256 = "1q8ahdz3afcw002p8dl2pybzkq4srk6bnikrz216yx1gswivdcad";
|
||||
};
|
||||
{ stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig,
|
||||
freetype, xkeyboard_config, makeDesktopItem, makeWrapper }:
|
||||
|
||||
let
|
||||
ldLibraryPath = stdenv.lib.makeLibraryPath [
|
||||
stdenv.cc.cc
|
||||
zlib
|
||||
@ -24,27 +18,56 @@ stdenv.mkDerivation {
|
||||
freetype
|
||||
];
|
||||
|
||||
buildInputs = [makeWrapper];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/* $out/bin
|
||||
|
||||
mkdir -p $out/lib
|
||||
cp -r lib/* $out/lib
|
||||
|
||||
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/robomongo
|
||||
|
||||
wrapProgram $out/bin/robomongo \
|
||||
--suffix LD_LIBRARY_PATH : $ldLibraryPath \
|
||||
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://robomongo.org/";
|
||||
description = "Query GUI for mongodb";
|
||||
platforms = stdenv.lib.intersectLists stdenv.lib.platforms.linux stdenv.lib.platforms.x86_64;
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.eperuffo ];
|
||||
icon = fetchurl {
|
||||
url = "https://github.com/Studio3T/robomongo/raw/v0.9.0/trash/install/linux/robomongo.png";
|
||||
sha256 = "15li8536x600kkfkb3h6mw7y0f2ljkv951pc45dpiw036vldibv2";
|
||||
};
|
||||
}
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "robomongo-0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz";
|
||||
sha256 = "1q8ahdz3afcw002p8dl2pybzkq4srk6bnikrz216yx1gswivdcad";
|
||||
};
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "robomongo";
|
||||
exec = "robomongo";
|
||||
icon = icon;
|
||||
comment = "Query GUI for mongodb";
|
||||
desktopName = "Robomongo";
|
||||
genericName = "MongoDB management tool";
|
||||
categories = "Development;IDE;mongodb;";
|
||||
};
|
||||
|
||||
buildInputs = [makeWrapper];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/* $out/bin
|
||||
|
||||
mkdir -p $out/lib
|
||||
cp -r lib/* $out/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
|
||||
|
||||
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/robomongo
|
||||
|
||||
wrapProgram $out/bin/robomongo \
|
||||
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
|
||||
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://robomongo.org/";
|
||||
description = "Query GUI for mongodb";
|
||||
platforms = stdenv.lib.intersectLists stdenv.lib.platforms.linux stdenv.lib.platforms.x86_64;
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.eperuffo ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user