2017-05-17 19:26:11 +00:00
|
|
|
{ stdenv, fetchurl, qmake, qtsvg }:
|
2017-03-18 10:53:42 +00:00
|
|
|
|
|
|
|
let
|
2018-07-13 06:41:36 +00:00
|
|
|
version = "1.43.27";
|
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";
|
2018-07-13 06:41:36 +00:00
|
|
|
sha256 = "1gzr11jy1bvnp28w2ar3wmh76g55jn9nra5la5qasnal6b5pg28h";
|
2017-03-18 10:53:42 +00:00
|
|
|
};
|
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2017-06-02 15:40:19 +00:00
|
|
|
buildInputs = [ qtsvg ];
|
2017-03-18 10:53:42 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace mytetra.pro \
|
|
|
|
--replace /usr/local/bin $out/bin \
|
|
|
|
--replace /usr/share $out/share
|
|
|
|
|
|
|
|
substituteInPlace src/views/mainWindow/MainWindow.cpp \
|
|
|
|
--replace ":/resource/pic/logo.svg" "$out/share/icons/hicolor/48x48/apps/mytetra.png"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|