1 { stdenv, lib, fetchurl, extra-cmake-modules
2 , qca-qt5, kauth, kio, polkit-qt, qtbase
6 stdenv.mkDerivation rec {
8 # NOTE: When changing this version, also change the version of `partition-manager`.
12 url = "mirror://kde/stable/release-service/${version}/src/${pname}-${version}.tar.xz";
13 hash = "sha256-Ws20hKX2iDdke5yBBKXukVUD4OnLf1OmwlhW+jUXL24=";
17 ./nixostrustedprefix.patch
20 nativeBuildInputs = [ extra-cmake-modules ];
28 util-linux # Needs blkid in configure script (note that this is not provided by util-linux-compat)
31 dontWrapQtApps = true;
34 substituteInPlace src/util/CMakeLists.txt \
35 --replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions
36 substituteInPlace src/backend/corebackend.cpp \
37 --replace /usr/share/polkit-1/actions/org.kde.kpmcore.externalcommand.policy $out/share/polkit-1/actions/org.kde.kpmcore.externalcommand.policy
41 description = "KDE Partition Manager core library";
42 homepage = "https://invent.kde.org/system/kpmcore";
43 license = with licenses; [ cc-by-40 cc0 gpl3Plus mit ];
44 maintainers = with maintainers; [ peterhoeg oxalica ];
45 # The build requires at least Qt 5.14:
46 broken = versionOlder qtbase.version "5.14";