2024-01-07 17:48:50 +00:00
|
|
|
{ mkDerivation
|
2023-05-15 09:49:51 +01:00
|
|
|
, lib
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qca-qt5
|
|
|
|
, kauth
|
|
|
|
, kio
|
|
|
|
, polkit-qt
|
2021-02-22 14:32:37 +00:00
|
|
|
, util-linux
|
|
|
|
}:
|
2016-12-30 03:54:25 +00:00
|
|
|
|
2024-01-07 17:48:50 +00:00
|
|
|
mkDerivation rec {
|
2016-12-30 03:54:25 +00:00
|
|
|
pname = "kpmcore";
|
|
|
|
|
2022-09-18 18:30:20 +01:00
|
|
|
patches = [
|
|
|
|
./nixostrustedprefix.patch
|
|
|
|
];
|
|
|
|
|
2022-04-14 04:34:30 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2016-12-30 03:54:25 +00:00
|
|
|
|
2021-02-22 14:32:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
qca-qt5
|
|
|
|
kauth
|
2020-10-23 07:09:44 +01:00
|
|
|
kio
|
2021-02-22 14:32:37 +00:00
|
|
|
polkit-qt
|
2018-05-09 09:57:38 +01:00
|
|
|
|
2021-02-22 14:32:37 +00:00
|
|
|
util-linux # Needs blkid in configure script (note that this is not provided by util-linux-compat)
|
2016-12-30 03:54:25 +00:00
|
|
|
];
|
2020-08-24 12:46:14 +01:00
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2022-04-14 04:34:30 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace src/util/CMakeLists.txt \
|
|
|
|
--replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions
|
2022-09-18 18:30:20 +01: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 04:34:30 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-02-22 14:32:37 +00: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 03:54:25 +00:00
|
|
|
};
|
|
|
|
}
|