2021-02-18 01:57:50 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, fetchFromGitiles, pkg-config, libssh2
|
|
|
|
, qtbase, qtdeclarative, qtgraphicaleffects, qtimageformats, qtquickcontrols2
|
2017-12-01 12:05:45 +00:00
|
|
|
, qtsvg, qttools, qtquick1, qtcharts
|
2017-05-17 19:26:11 +00:00
|
|
|
, qmake
|
2016-04-29 21:42:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2019-12-02 22:29:40 +00:00
|
|
|
breakpad_lss = fetchFromGitiles {
|
2016-04-29 21:42:26 +00:00
|
|
|
url = "https://chromium.googlesource.com/linux-syscall-support";
|
|
|
|
rev = "08056836f2b4a5747daff75435d10d649bed22f6";
|
|
|
|
sha256 = "1ryshs2nyxwa0kn3rlbnd5b3fhna9vqm560yviddcfgdm2jyg0hz";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2021-02-18 01:57:50 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "redis-desktop-manager";
|
2018-03-27 01:13:13 +00:00
|
|
|
version = "0.9.1";
|
2016-04-29 21:42:26 +00:00
|
|
|
|
2019-12-02 22:29:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uglide";
|
|
|
|
repo = "RedisDesktopManager";
|
2016-04-29 21:42:26 +00:00
|
|
|
fetchSubmodules = true;
|
2019-12-02 22:29:40 +00:00
|
|
|
rev = version;
|
2018-03-27 01:13:13 +00:00
|
|
|
sha256 = "0yd4i944d4blw8jky0nxl7sfkkj975q4d328rdcbhizwvf6dx81f";
|
2016-04-29 21:42:26 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config qmake ];
|
2016-04-29 21:42:26 +00:00
|
|
|
buildInputs = [
|
2017-09-14 19:24:37 +00:00
|
|
|
libssh2 qtbase qtdeclarative qtgraphicaleffects qtimageformats
|
2021-02-18 01:57:50 +00:00
|
|
|
qtquick1 qtquickcontrols2 qtsvg qttools qtcharts
|
2016-04-29 21:42:26 +00:00
|
|
|
];
|
|
|
|
|
2016-09-13 05:02:06 +00:00
|
|
|
dontUseQmakeConfigure = true;
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
2016-04-29 21:42:26 +00:00
|
|
|
|
2019-11-03 13:25:50 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated" ];
|
|
|
|
|
2018-03-27 01:13:13 +00:00
|
|
|
# Disable annoying update reminder
|
|
|
|
postPatch = ''
|
|
|
|
sed -i s/'^\s*initUpdater();'/'\/\/initUpdater():'/ src/app/app.cpp
|
|
|
|
'';
|
|
|
|
|
2016-04-29 21:42:26 +00:00
|
|
|
buildPhase = ''
|
|
|
|
srcdir=$PWD
|
|
|
|
|
|
|
|
cat <<EOF > src/version.h
|
|
|
|
#ifndef RDM_VERSION
|
|
|
|
#define RDM_VERSION "${version}-120"
|
|
|
|
#endif // !RDM_VERSION
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cd $srcdir/3rdparty/gbreakpad
|
|
|
|
cp -r ${breakpad_lss} src/third_party/lss
|
|
|
|
chmod +w -R src/third_party/lss
|
|
|
|
touch README
|
|
|
|
|
|
|
|
cd $srcdir/3rdparty/crashreporter
|
|
|
|
qmake CONFIG+=release DESTDIR="$srcdir/rdm/bin/linux/release" QMAKE_LFLAGS_RPATH=""
|
|
|
|
make
|
|
|
|
|
|
|
|
cd $srcdir/3rdparty/gbreakpad
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
|
|
|
|
cd $srcdir/src
|
|
|
|
qmake
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
instdir="$srcdir/bin/linux/release"
|
|
|
|
cp $instdir/rdm $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-platform open source Redis DB management tool";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://redisdesktop.com/";
|
2021-02-18 01:57:50 +00:00
|
|
|
license = licenses.gpl3Only;
|
2016-04-29 21:42:26 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|