robo3t: refactor and add keyword
This commit is contained in:
parent
39717cb99f
commit
f141586b64
|
@ -1,5 +1,18 @@
|
||||||
{ lib, stdenv, fetchurl, curl, zlib, glib, xorg, dbus, fontconfig, libGL,
|
{ lib
|
||||||
freetype, xkeyboard_config, makeDesktopItem, makeWrapper }:
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, curl
|
||||||
|
, zlib
|
||||||
|
, glib
|
||||||
|
, xorg
|
||||||
|
, dbus
|
||||||
|
, fontconfig
|
||||||
|
, libGL
|
||||||
|
, freetype
|
||||||
|
, xkeyboard_config
|
||||||
|
, makeDesktopItem
|
||||||
|
, makeWrapper
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
|
curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
|
||||||
|
@ -30,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
categories = "Development;IDE;";
|
categories = "Development;IDE;";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [makeWrapper];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
ldLibraryPath = lib.makeLibraryPath [
|
ldLibraryPath = lib.makeLibraryPath [
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
|
@ -51,6 +64,8 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
BASEDIR=$out/lib/robo3t
|
BASEDIR=$out/lib/robo3t
|
||||||
|
|
||||||
mkdir -p $BASEDIR/bin
|
mkdir -p $BASEDIR/bin
|
||||||
|
@ -72,13 +87,15 @@ stdenv.mkDerivation rec {
|
||||||
makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
|
makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
|
||||||
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
|
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
|
||||||
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://robomongo.org/";
|
homepage = "https://robomongo.org/";
|
||||||
description = "Query GUI for mongodb";
|
description = "Query GUI for mongodb. Formerly called Robomongo";
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
license = lib.licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
maintainers = [ lib.maintainers.eperuffo ];
|
maintainers = with maintainers; [ eperuffo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue