2024-01-07 18:48:50 +01:00
|
|
|
{ mkDerivation
|
2023-05-15 10:49:51 +02:00
|
|
|
, lib
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qca-qt5
|
|
|
|
, kauth
|
|
|
|
, kio
|
|
|
|
, polkit-qt
|
2021-02-22 15:32:37 +01:00
|
|
|
, util-linux
|
|
|
|
}:
|
2016-12-30 04:54:25 +01:00
|
|
|
|
2024-01-07 18:48:50 +01:00
|
|
|
mkDerivation rec {
|
2016-12-30 04:54:25 +01:00
|
|
|
pname = "kpmcore";
|
|
|
|
|
2022-09-18 19:30:20 +02:00
|
|
|
patches = [
|
|
|
|
./nixostrustedprefix.patch
|
|
|
|
];
|
|
|
|
|
2022-04-14 05:34:30 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2016-12-30 04:54:25 +01:00
|
|
|
|
2021-02-22 15:32:37 +01:00
|
|
|
buildInputs = [
|
|
|
|
qca-qt5
|
|
|
|
kauth
|
2020-10-23 08:09:44 +02:00
|
|
|
kio
|
2021-02-22 15:32:37 +01:00
|
|
|
polkit-qt
|
2018-05-09 10:57:38 +02:00
|
|
|
|
2021-02-22 15:32:37 +01:00
|
|
|
util-linux # Needs blkid in configure script (note that this is not provided by util-linux-compat)
|
2016-12-30 04:54:25 +01:00
|
|
|
];
|
2020-08-24 13:46:14 +02:00
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2022-04-14 05:34:30 +02:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace src/util/CMakeLists.txt \
|
|
|
|
--replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions
|
2022-09-18 19:30:20 +02:00
|
|
|
substituteInPlace src/backend/corebackend.cpp \
|
|
|
|
--replace /usr/share/polkit-1/actions/org.kde.kpmcore.externalcommand.policy $out/share/polkit-1/actions/org.kde.kpmcore.externalcommand.policy
|
2022-04-14 05:34:30 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2021-02-22 15:32:37 +01:00
|
|
|
description = "KDE Partition Manager core library";
|
|
|
|
homepage = "https://invent.kde.org/system/kpmcore";
|
|
|
|
license = with licenses; [ cc-by-40 cc0 gpl3Plus mit ];
|
|
|
|
maintainers = with maintainers; [ peterhoeg oxalica ];
|
2016-12-30 04:54:25 +01:00
|
|
|
};
|
|
|
|
}
|