1 { lib, mkDerivation, fetchFromGitHub, qmake, qtsvg, makeWrapper, xdg-utils }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-jQXnDoLkqbDZxfsYKPDsTOE7p/BFeA8wEznpbkRVGdw=";
14 nativeBuildInputs = [ qmake makeWrapper ];
15 buildInputs = [ qtsvg ];
17 hardeningDisable = [ "format" ];
20 substituteInPlace app/app.pro \
21 --replace /usr/local/bin $out/bin \
22 --replace /usr/share $out/share
24 substituteInPlace app/src/views/mainWindow/MainWindow.cpp \
25 --replace ":/resource/pic/logo.svg" "$out/share/icons/hicolor/48x48/apps/mytetra.png"
27 # https://github.com/xintrea/mytetra_dev/issues/164
28 substituteInPlace thirdParty/mimetex/mimetex.c \
29 --replace "const char *strcasestr" "char *strcasestr"
33 # make xdg-open overrideable at runtime
34 wrapProgram $out/bin/mytetra \
35 --suffix PATH : ${xdg-utils}/bin
39 description = "Smart manager for information collecting";
40 mainProgram = "mytetra";
41 homepage = "https://webhamster.ru/site/page/index/articles/projectcode/138";
42 license = licenses.gpl3;
44 platforms = platforms.linux;