12 stdenv.mkDerivation rec {
14 # NOTE: When changing this version, also change the version of `partition-manager`.
18 url = "mirror://kde/stable/release-service/${version}/src/${pname}-${version}.tar.xz";
19 hash = "sha256-NFIq8CZwYvpqDOOYLlBqoGdgfNPsyf15FkB3dToDCB8=";
23 ./nixostrustedprefix.patch
26 nativeBuildInputs = [ extra-cmake-modules ];
34 util-linux # Needs blkid in configure script (note that this is not provided by util-linux-compat)
37 dontWrapQtApps = true;
40 substituteInPlace src/util/CMakeLists.txt \
41 --replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions
42 substituteInPlace src/backend/corebackend.cpp \
43 --replace /usr/share/polkit-1/actions/org.kde.kpmcore.externalcommand.policy $out/share/polkit-1/actions/org.kde.kpmcore.externalcommand.policy
47 description = "KDE Partition Manager core library";
48 homepage = "https://invent.kde.org/system/kpmcore";
49 license = with licenses; [ cc-by-40 cc0 gpl3Plus mit ];
50 maintainers = with maintainers; [ peterhoeg oxalica ];