2017-05-16 17:56:41 +02:00
|
|
|
{ mkDerivation, fetchurl, lib
|
|
|
|
, extra-cmake-modules, kdoctools, wrapGAppsHook
|
2017-07-09 04:44:10 +02:00
|
|
|
, kconfig, kcrash, kinit, kpmcore
|
2018-05-22 12:10:51 +02:00
|
|
|
, eject, libatasmart , utillinux, makeWrapper, qtbase
|
|
|
|
}:
|
2016-12-30 04:54:25 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "partitionmanager";
|
2017-05-16 17:56:41 +02:00
|
|
|
in mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-05-22 12:10:51 +02:00
|
|
|
version = "3.3.1";
|
2016-12-30 04:54:25 +01:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
|
2018-05-22 12:10:51 +02:00
|
|
|
sha256 = "0jhggb4xksb0k0mj752n6pz0xmccnbzlp984xydqbz3hkigra1si";
|
2016-12-30 04:54:25 +01:00
|
|
|
};
|
|
|
|
|
2018-05-22 12:10:51 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook makeWrapper ];
|
|
|
|
|
|
|
|
# refer to kpmcore for the use of eject
|
|
|
|
buildInputs = [ eject libatasmart utillinux ];
|
|
|
|
propagatedBuildInputs = [ kconfig kcrash kinit kpmcore ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/partitionmanager" --prefix QT_PLUGIN_PATH : "${kpmcore}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins"
|
|
|
|
'';
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "KDE Partition Manager";
|
|
|
|
license = licenses.gpl2;
|
2018-05-22 12:10:51 +02:00
|
|
|
homepage = https://www.kde.org/applications/system/kdepartitionmanager/;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ma27 ];
|
2017-05-16 17:56:41 +02:00
|
|
|
};
|
2016-12-30 04:54:25 +01:00
|
|
|
}
|