Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: qelectrotech 0.9.0 -> 0.100 https://repology.org/project/qelectrotech/versions attrpath: qelectrotech Checking auto update branch... No auto update branch exists Old version 0.9.0" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, installShellFiles, pkg-config, cmake, qtbase, qtsvg, wrapQtAppsHook, qttools, pugixml, }: let singleApplication = fetchFromGitHub { owner = "itay-grudev"; repo = "SingleApplication"; tag = "v3.2.0"; hash = "sha256-qjpPYPe1Oism6TetD/dMvTo1qyZKOsOPW+MzzNpJf3A="; }; in stdenv.mkDerivation rec { pname = "qelectrotech"; version = "0.100"; src = fetchFromGitHub { owner = "qelectrotech"; repo = "qelectrotech-source-mirror"; tag = version; hash = "sha256-ElkqRiIHSXavXEw1ioFKL1cGnaBb2GXZuxgl98O4WuI="; }; patches = [ # stripped down version of https://codeberg.org/gentoo/gentoo/src/branch/master/sci-electronics/qelectrotech/files/qelectrotech-0.90_pre20250820-cmake.patch ./system-pugixml.patch ]; # fix wrong cmake conditional postPatch = '' substituteInPlace cmake/fetch_kdeaddons.cmake \ --replace-fail "DEFINED BUILD_WITH_KF5" "BUILD_WITH_KF5" ''; cmakeFlags = [ "-DBUILD_WITH_KF5=OFF" # relies on vendored catch2 "-DPACKAGE_TESTS=OFF" "-DFETCHCONTENT_SOURCE_DIR_SINGLEAPPLICATION=${singleApplication}" "-DBUILD_PUGIXML=OFF" ]; nativeBuildInputs = [ installShellFiles pkg-config cmake wrapQtAppsHook qttools ]; buildInputs = [ qtbase qtsvg pugixml ]; installPhase = '' runHook preInstall install -Dm555 qelectrotech $out/bin/qelectrotech install -Dm444 -t $out/share/applications misc/qelectrotech.desktop mkdir -p $out/share/qelectrotech cp -r elements $out/share/qelectrotech cp -r titleblocks $out/share/qelectrotech cp -r lang $out/share/qelectrotech cp -r examples $out/share/qelectrotech mkdir -p $out/share/icons/hicolor cp -r ico $out/share/icons/hicolor runHook postInstall ''; meta = { description = "Free software to create electric diagrams"; mainProgram = "qelectrotech"; homepage = "https://qelectrotech.org/"; license = lib.licenses.gpl2; maintainers = with lib.maintainers; [ yvesf ]; platforms = qtbase.meta.platforms; broken = stdenv.hostPlatform.isDarwin; }; }