git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127613 from Artturin/robomongo
commit35677fc03fcf790c48731ba90fbaac40d5293c52 authorSandro <sandro.jaeckel@gmail.com> dateMon 21 Jun 2021, 11:57 (5 years ago) parent5f3ebbc19b8fd7
2 files changed+24−84
pkgs/applications/misc/robo3t/default.nix+24−7 pkgs/applications/misc/robomongo/default.nix−77
pkgs/applications/misc/robo3t/default.nix+24−7
@@ -1,5 +1,18 @@
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+}:
316
417let
518 curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
@@ -30,7 +43,7 @@ stdenv.mkDerivation rec {
3043 categories = "Development;IDE;";
3144 };
3245
33− nativeBuildInputs = [makeWrapper];
46+ nativeBuildInputs = [ makeWrapper ];
3447
3548 ldLibraryPath = lib.makeLibraryPath [
3649 stdenv.cc.cc
@@ -51,6 +64,8 @@ stdenv.mkDerivation rec {
5164 ];
5265
5366 installPhase = ''
67+ runHook preInstall
68+
5469 BASEDIR=$out/lib/robo3t
5570
5671 mkdir -p $BASEDIR/bin
@@ -72,13 +87,15 @@ stdenv.mkDerivation rec {
7287 makeWrapper $BASEDIR/bin/robo3t $out/bin/robo3t \
7388 --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
7489 --suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
90+
91+ runHook postInstall
7592 '';
7693
77− meta = {
94+ meta = with lib; {
7895 homepage = "https://robomongo.org/";
79− description = "Query GUI for mongodb";
96+ description = "Query GUI for mongodb. Formerly called Robomongo";
8097 platforms = [ "x86_64-linux" ];
81− license = lib.licenses.gpl3;
82− maintainers = [ lib.maintainers.eperuffo ];
98+ license = licenses.gpl3Only;
99+ maintainers = with maintainers; [ eperuffo ];
83100 };
84101}
pkgs/applications/misc/robomongo/default.nixdeleted−77
@@ -1,77 +0,0 @@
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−}