1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 12:02:47 +00:00
nixpkgs/pkgs/applications/office/mytetra/default.nix
Sandro Jäckel ae02415ee8
treewide: remove gnidorah
due to github account removal/deletion and not other mean of contact.
2021-04-30 01:48:19 +02:00

40 lines
1.1 KiB
Nix

{ lib, mkDerivation, fetchurl, qmake, qtsvg, makeWrapper, xdg-utils }:
let
version = "1.44.55";
in mkDerivation {
pname = "mytetra";
inherit version;
src = fetchurl {
url = "https://github.com/xintrea/mytetra_dev/archive/v.${version}.tar.gz";
sha256 = "13lmfvschm1xwr0ys2ykhs0bb83m2f39rk1jdd7zf8yxlqki4i6l";
};
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 \
--prefix PATH : ${xdg-utils}/bin
'';
meta = with lib; {
description = "Smart manager for information collecting";
homepage = "https://webhamster.ru/site/page/index/articles/projectcode/138";
license = licenses.gpl3;
maintainers = [ ];
platforms = platforms.linux;
};
}