about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-06-21 03:38:12 +0300
committerArtturin <Artturin@artturin.com>2021-06-21 03:38:12 +0300
commitf141586b64f43727546f57e175935c9187e2e9d4 (patch)
tree218ba3afcc85150b95edf4556cc21777286731cb
parent39717cb99ffa0239b6c03c21e99663a557fcb6ed (diff)
downloadnixlib-f141586b64f43727546f57e175935c9187e2e9d4.tar
nixlib-f141586b64f43727546f57e175935c9187e2e9d4.tar.gz
nixlib-f141586b64f43727546f57e175935c9187e2e9d4.tar.bz2
nixlib-f141586b64f43727546f57e175935c9187e2e9d4.tar.lz
nixlib-f141586b64f43727546f57e175935c9187e2e9d4.tar.xz
nixlib-f141586b64f43727546f57e175935c9187e2e9d4.tar.zst
nixlib-f141586b64f43727546f57e175935c9187e2e9d4.zip
robo3t: refactor and add keyword
-rw-r--r--pkgs/applications/misc/robo3t/default.nix31
1 files changed, 24 insertions, 7 deletions
diff --git a/pkgs/applications/misc/robo3t/default.nix b/pkgs/applications/misc/robo3t/default.nix
index 1b19d9ab9cc0..41f3475a645f 100644
--- a/pkgs/applications/misc/robo3t/default.nix
+++ b/pkgs/applications/misc/robo3t/default.nix
@@ -1,5 +1,18 @@
-{ lib, stdenv, fetchurl, curl, zlib, glib, xorg, dbus, fontconfig, libGL,
-  freetype, xkeyboard_config, makeDesktopItem, makeWrapper }:
+{ lib
+, stdenv
+, fetchurl
+, curl
+, zlib
+, glib
+, xorg
+, dbus
+, fontconfig
+, libGL
+, freetype
+, xkeyboard_config
+, makeDesktopItem
+, makeWrapper
+}:
 
 let
   curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
@@ -30,7 +43,7 @@ stdenv.mkDerivation rec {
     categories = "Development;IDE;";
   };
 
-  nativeBuildInputs = [makeWrapper];
+  nativeBuildInputs = [ makeWrapper ];
 
   ldLibraryPath = lib.makeLibraryPath [
     stdenv.cc.cc
@@ -51,6 +64,8 @@ stdenv.mkDerivation rec {
   ];
 
   installPhase = ''
+    runHook preInstall
+
     BASEDIR=$out/lib/robo3t
 
     mkdir -p $BASEDIR/bin
@@ -72,13 +87,15 @@ stdenv.mkDerivation rec {
     makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
       --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
       --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
+
+    runHook postInstall
   '';
 
-  meta = {
+  meta = with lib; {
     homepage = "https://robomongo.org/";
-    description = "Query GUI for mongodb";
+    description = "Query GUI for mongodb. Formerly called Robomongo";
     platforms = [ "x86_64-linux" ];
-    license = lib.licenses.gpl3;
-    maintainers = [ lib.maintainers.eperuffo ];
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ eperuffo ];
   };
 }