nixpkgs/pkgs/applications/kde/kpmcore/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1 KiB
Nix
Raw Normal View History

{ mkDerivation
2023-05-15 10:49:51 +02:00
, lib
, extra-cmake-modules
, qca-qt5
, kauth
, kio
, polkit-qt
, util-linux
}:
mkDerivation rec {
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 ];
buildInputs = [
qca-qt5
kauth
kio
polkit-qt
util-linux # Needs blkid in configure script (note that this is not provided by util-linux-compat)
];
2020-08-24 13:46:14 +02: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
'';
meta = with lib; {
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 ];
};
}