mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
![Silvan Mosberger](/assets/img/avatar_default.png)
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
mkDerivation,
|
|
fetchFromGitHub,
|
|
qmake,
|
|
qtsvg,
|
|
makeWrapper,
|
|
xdg-utils,
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "mytetra";
|
|
version = "1.44.55";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xintrea";
|
|
repo = "mytetra_dev";
|
|
rev = "v.${version}";
|
|
sha256 = "sha256-jQXnDoLkqbDZxfsYKPDsTOE7p/BFeA8wEznpbkRVGdw=";
|
|
};
|
|
|
|
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"
|
|
|
|
# https://github.com/xintrea/mytetra_dev/issues/164
|
|
substituteInPlace thirdParty/mimetex/mimetex.c \
|
|
--replace "const char *strcasestr" "char *strcasestr"
|
|
'';
|
|
|
|
postFixup = ''
|
|
# make xdg-open overrideable at runtime
|
|
wrapProgram $out/bin/mytetra \
|
|
--suffix PATH : ${xdg-utils}/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Smart manager for information collecting";
|
|
mainProgram = "mytetra";
|
|
homepage = "https://webhamster.ru/site/page/index/articles/projectcode/138";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|