2021-03-02 15:56:53 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitLab, pkg-config, qmake, qtbase, qemu }:
|
2020-04-10 19:55:23 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qtemu";
|
|
|
|
version = "2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "qtemu";
|
|
|
|
repo = "gui";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1555178mkfw0gwmw8bsxmg4339j2ifp0yb4b2f39nxh9hwshg07j";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2020-04-10 19:55:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qemu
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
# upstream lacks an install method
|
|
|
|
install -D -t $out/share/applications qtemu.desktop
|
|
|
|
install -D -t $out/share/pixmaps qtemu.png
|
|
|
|
install -D -t $out/bin qtemu
|
|
|
|
|
|
|
|
# make sure that the qemu-* executables are found
|
2021-01-15 05:42:41 +00:00
|
|
|
wrapProgram $out/bin/qtemu --prefix PATH : ${lib.makeBinPath [ qemu ]}
|
2020-04-10 19:55:23 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-10 19:55:23 +00:00
|
|
|
description = "Qt-based front-end for QEMU emulator";
|
|
|
|
homepage = "https://qtemu.org";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "qtemu";
|
2020-04-10 19:55:23 +00:00
|
|
|
};
|
|
|
|
}
|