mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
14ce4947b2
See: https://github.com/NixOS/nixpkgs/pull/63260#pullrequestreview-251601561 The build for kpmcore is only broken when the Qt version is older than 5.12.
36 lines
844 B
Nix
36 lines
844 B
Nix
{ stdenv, lib, fetchurl, extra-cmake-modules
|
|
, qtbase, kdeFrameworks
|
|
, libatasmart, parted
|
|
, utillinux }:
|
|
|
|
let
|
|
pname = "kpmcore";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
version = "3.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
|
|
sha256 = "0s6v0jfrhjg31ri5p6h9n4w29jvasf5dj954j3vfpzl91lygmmmq";
|
|
};
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
libatasmart
|
|
parted # we only need the library
|
|
|
|
kdeFrameworks.kio
|
|
|
|
utillinux # needs blkid (note that this is not provided by utillinux-compat)
|
|
];
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
maintainers = with lib.maintainers; [ peterhoeg ];
|
|
# The build requires at least Qt 5.12:
|
|
broken = lib.versionOlder qtbase.version "5.12.0";
|
|
};
|
|
}
|