tpmmanager: switch to Qt5

This commit is contained in:
Markus S. Wamser 2022-05-13 11:22:05 +02:00
parent 210739403a
commit 4a18eff46c
2 changed files with 16 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, qt4, qmake4Hook, trousers }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, qtbase, qmake, wrapQtAppsHook, trousers }:
stdenv.mkDerivation rec {
version = "0.8.1";
@ -11,9 +11,21 @@ stdenv.mkDerivation rec {
sha256 = "sha256-UZYn4ssbvLpdB0DssT7MXqQZCu1KkLf/Bsb45Rvgm+E=";
};
nativeBuildInputs = [ qmake4Hook ];
patches = [
# build with Qt5
(fetchpatch {
url = "https://github.com/Rohde-Schwarz/TPMManager/commit/f62c0f2de2097af9b504c80d6193818e6e4ca84f.patch";
sha256 = "sha256-gMhDNN2UkX2lJf/oJEzOkCvF6+EGdIj9xwtXb1rCeys=";
})
(fetchpatch {
url = "https://github.com/Rohde-Schwarz/TPMManager/commit/c287a841ac6b057ed35799949211866b9f533561.patch";
sha256 = "sha256-2ZyUml8Q9bKQLVZWr18AzLt8VYLICXH9VDeq6B5Xfto=";
})
];
buildInputs = [ qt4 trousers ];
nativeBuildInputs = [ qmake wrapQtAppsHook ];
buildInputs = [ qtbase trousers ];
installPhase = ''
mkdir -p $out/bin

View file

@ -10982,7 +10982,7 @@ with pkgs;
toybox = callPackage ../tools/misc/toybox { };
tpmmanager = callPackage ../applications/misc/tpmmanager { };
tpmmanager = libsForQt5.callPackage ../applications/misc/tpmmanager { };
tpm-quote-tools = callPackage ../tools/security/tpm-quote-tools { };