2021-11-02 14:23:29 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qmake, qtsvg, makeWrapper, xdg-utils }:
|
2017-03-18 11:53:42 +01:00
|
|
|
|
2021-11-02 14:23:29 +01:00
|
|
|
mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "mytetra";
|
2021-11-02 14:23:29 +01:00
|
|
|
version = "1.44.55";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xintrea";
|
|
|
|
repo = "mytetra_dev";
|
|
|
|
rev = "v.${version}";
|
|
|
|
sha256 = "sha256-jQXnDoLkqbDZxfsYKPDsTOE7p/BFeA8wEznpbkRVGdw=";
|
2017-03-18 11:53:42 +01:00
|
|
|
};
|
|
|
|
|
2018-10-24 11:08:06 +02:00
|
|
|
nativeBuildInputs = [ qmake makeWrapper ];
|
2017-06-02 17:40:19 +02:00
|
|
|
buildInputs = [ qtsvg ];
|
2017-03-18 11:53:42 +01:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2019-01-11 22:40:29 +01:00
|
|
|
substituteInPlace app/app.pro \
|
2017-03-18 11:53:42 +01:00
|
|
|
--replace /usr/local/bin $out/bin \
|
|
|
|
--replace /usr/share $out/share
|
|
|
|
|
2019-01-11 22:40:29 +01:00
|
|
|
substituteInPlace app/src/views/mainWindow/MainWindow.cpp \
|
2017-03-18 11:53:42 +01:00
|
|
|
--replace ":/resource/pic/logo.svg" "$out/share/icons/hicolor/48x48/apps/mytetra.png"
|
|
|
|
'';
|
|
|
|
|
2018-10-24 11:08:06 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/mytetra \
|
2021-02-01 09:05:09 +01:00
|
|
|
--prefix PATH : ${xdg-utils}/bin
|
2018-10-24 11:08:06 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-03-18 11:53:42 +01:00
|
|
|
description = "Smart manager for information collecting";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://webhamster.ru/site/page/index/articles/projectcode/138";
|
2017-03-18 11:53:42 +01:00
|
|
|
license = licenses.gpl3;
|
2021-04-29 07:21:13 +02:00
|
|
|
maintainers = [ ];
|
2017-03-18 11:53:42 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|