nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 1.2 kB view raw
1{ stdenv, lib, fetchurl, extra-cmake-modules 2, qca-qt5, kauth, kio, polkit-qt, qtbase 3, util-linux 4}: 5 6stdenv.mkDerivation rec { 7 pname = "kpmcore"; 8 # NOTE: When changing this version, also change the version of `partition-manager`. 9 version = "22.04.0"; 10 11 src = fetchurl { 12 url = "mirror://kde/stable/release-service/${version}/src/${pname}-${version}.tar.xz"; 13 hash = "sha256-sO8WUJL6072H1ghMZd7j0xNMwEn4bJF5PXMhfEb2jbs="; 14 }; 15 16 nativeBuildInputs = [ extra-cmake-modules ]; 17 18 buildInputs = [ 19 qca-qt5 20 kauth 21 kio 22 polkit-qt 23 24 util-linux # Needs blkid in configure script (note that this is not provided by util-linux-compat) 25 ]; 26 27 dontWrapQtApps = true; 28 29 preConfigure = '' 30 substituteInPlace src/util/CMakeLists.txt \ 31 --replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions 32 ''; 33 34 meta = with lib; { 35 description = "KDE Partition Manager core library"; 36 homepage = "https://invent.kde.org/system/kpmcore"; 37 license = with licenses; [ cc-by-40 cc0 gpl3Plus mit ]; 38 maintainers = with maintainers; [ peterhoeg oxalica ]; 39 # The build requires at least Qt 5.14: 40 broken = versionOlder qtbase.version "5.14"; 41 }; 42}