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