partition-manager: 3.0.1 -> 3.3.1 (#40895)
The `3.0.1` build was broken (see the Hydra build from https://hydra.nixos.org/build/74368257 for further reference). Because of the missing `utillinux` build input the package fails fairly early: ``` -- Checking for module 'blkid' -- No package 'blkid' found CMake Error at /nix/store/9hmhxgj4jk6jmxihgavj6gm0p759misc-cmake-3.10.2/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message): A required package was not found ``` Additionally `partition-manager` was broken on non-KDE desktops (none+i3 in my case) as the plugins from `libsForQt5.kpmcore` couldn't be found in `QT_PLUGIN_PATH` unless it's installed in `environment.systemPackages` or with `nix-env -iA libsForQt5.kpmcore`. This has been fixed by adding a wrapper in the `postInstall` hook which prefixes the `QT_PLUGIN_PATH` with the plugin path from `kpmcore` used for the build.
This commit is contained in:
parent
bb28b3e80f
commit
a8a6d26f8f
@ -1,26 +1,36 @@
|
|||||||
{ mkDerivation, fetchurl, lib
|
{ mkDerivation, fetchurl, lib
|
||||||
, extra-cmake-modules, kdoctools, wrapGAppsHook
|
, extra-cmake-modules, kdoctools, wrapGAppsHook
|
||||||
, kconfig, kcrash, kinit, kpmcore
|
, kconfig, kcrash, kinit, kpmcore
|
||||||
, eject, libatasmart }:
|
, eject, libatasmart , utillinux, makeWrapper, qtbase
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "partitionmanager";
|
pname = "partitionmanager";
|
||||||
in mkDerivation rec {
|
in mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
version = "3.0.1";
|
version = "3.3.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
|
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
|
||||||
sha256 = "08sb9xa7dvvgha3k2xm1srl339przxpxd2y5bh1lnx6k1x7dk410";
|
sha256 = "0jhggb4xksb0k0mj752n6pz0xmccnbzlp984xydqbz3hkigra1si";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "KDE Partition Manager";
|
description = "KDE Partition Manager";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
homepage = https://www.kde.org/applications/system/kdepartitionmanager/;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ma27 ];
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
|
||||||
# refer to kpmcore for the use of eject
|
|
||||||
buildInputs = [ eject libatasmart ];
|
|
||||||
propagatedBuildInputs = [ kconfig kcrash kinit kpmcore ];
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user