2018-10-24 10:08:06 +01:00
|
|
|
{ stdenv, fetchurl, qmake, qtsvg, makeWrapper, xdg_utils }:
|
2017-03-18 10:53:42 +00:00
|
|
|
|
|
|
|
let
|
2019-01-11 21:40:29 +00:00
|
|
|
version = "1.44.55";
|
2017-03-18 10:53:42 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "mytetra-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/xintrea/mytetra_dev/archive/v.${version}.tar.gz";
|
2019-01-11 21:40:29 +00:00
|
|
|
sha256 = "13lmfvschm1xwr0ys2ykhs0bb83m2f39rk1jdd7zf8yxlqki4i6l";
|
2017-03-18 10:53:42 +00:00
|
|
|
};
|
|
|
|
|
2018-10-24 10:08:06 +01:00
|
|
|
nativeBuildInputs = [ qmake makeWrapper ];
|
2017-06-02 16:40:19 +01:00
|
|
|
buildInputs = [ qtsvg ];
|
2017-03-18 10:53:42 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2019-01-11 21:40:29 +00:00
|
|
|
substituteInPlace app/app.pro \
|
2017-03-18 10:53:42 +00:00
|
|
|
--replace /usr/local/bin $out/bin \
|
|
|
|
--replace /usr/share $out/share
|
|
|
|
|
2019-01-11 21:40:29 +00:00
|
|
|
substituteInPlace app/src/views/mainWindow/MainWindow.cpp \
|
2017-03-18 10:53:42 +00:00
|
|
|
--replace ":/resource/pic/logo.svg" "$out/share/icons/hicolor/48x48/apps/mytetra.png"
|
|
|
|
'';
|
|
|
|
|
2018-10-24 10:08:06 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/mytetra \
|
|
|
|
--prefix PATH : ${xdg_utils}/bin
|
|
|
|
'';
|
|
|
|
|
2017-03-18 10:53:42 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Smart manager for information collecting";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://webhamster.ru/site/page/index/articles/projectcode/138;
|
2017-03-18 10:53:42 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.gnidorah ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|