2017-12-01 12:05:45 +00:00
|
|
|
{ stdenv, lib, fetchgit, fetchpatch, pkgconfig, libssh2
|
2016-04-29 22:42:26 +01:00
|
|
|
, qtbase, qtdeclarative, qtgraphicaleffects, qtimageformats, qtquickcontrols
|
2017-12-01 12:05:45 +00:00
|
|
|
, qtsvg, qttools, qtquick1, qtcharts
|
2017-05-17 20:26:11 +01:00
|
|
|
, qmake
|
2016-04-29 22:42:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
breakpad_lss = fetchgit {
|
|
|
|
url = "https://chromium.googlesource.com/linux-syscall-support";
|
|
|
|
rev = "08056836f2b4a5747daff75435d10d649bed22f6";
|
|
|
|
sha256 = "1ryshs2nyxwa0kn3rlbnd5b3fhna9vqm560yviddcfgdm2jyg0hz";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "redis-desktop-manager-${version}";
|
2017-12-01 12:05:45 +00:00
|
|
|
version = "0.9.0-alpha5";
|
2016-04-29 22:42:26 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/uglide/RedisDesktopManager.git";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
rev = "refs/tags/${version}";
|
2017-12-01 12:05:45 +00:00
|
|
|
sha256 = "1grw4zng0ff0lvplzzld133hlz6zjn5f5hl3z6z7kc1nq5642yr9";
|
2016-04-29 22:42:26 +01:00
|
|
|
};
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig qmake ];
|
2016-04-29 22:42:26 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
libssh2 qtbase qtdeclarative qtgraphicaleffects qtimageformats
|
2017-12-01 12:05:45 +00:00
|
|
|
qtquick1 qtquickcontrols qtsvg qttools qtcharts
|
2016-04-29 22:42:26 +01:00
|
|
|
];
|
|
|
|
|
2017-12-01 12:05:45 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/google/breakpad/commit/bddcc58860f522a0d4cbaa7e9d04058caee0db9d.patch";
|
|
|
|
sha256 = "1bcamjkmif62rb0lbp111r0ppf4raqw664m5by7vr3pdkcjbbilq";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = "-d 3rdparty/gbreakpad -p1";
|
|
|
|
|
2016-09-13 06:02:06 +01:00
|
|
|
dontUseQmakeConfigure = true;
|
2016-04-29 22:42:26 +01: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";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://redisdesktop.com/;
|
2016-04-29 22:42:26 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|