Files
nixpkgs/pkgs/by-name/qt/qtemu/package.nix
phanirithvij c01c964d04 various: use finalAttrs
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2026-05-30 16:09:36 +05:30

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
libsForQt5,
qemu,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "qtemu";
version = "2.1";
src = fetchFromGitLab {
owner = "qtemu";
repo = "gui";
rev = finalAttrs.version;
sha256 = "1555178mkfw0gwmw8bsxmg4339j2ifp0yb4b2f39nxh9hwshg07j";
};
nativeBuildInputs = [
libsForQt5.qmake
pkg-config
libsForQt5.wrapQtAppsHook
];
buildInputs = [
libsForQt5.qtbase
qemu
];
installPhase = ''
runHook preInstall
# upstream lacks an install method
install -D -t $out/share/applications qtemu.desktop
install -D -t $out/share/icons/hicolor/32x32/apps qtemu.png
install -D -t $out/bin qtemu
# make sure that the qemu-* executables are found
wrapProgram $out/bin/qtemu --prefix PATH : ${lib.makeBinPath [ qemu ]}
runHook postInstall
'';
meta = {
description = "Qt-based front-end for QEMU emulator";
homepage = "https://qtemu.org";
license = lib.licenses.gpl2;
platforms = with lib.platforms; linux;
maintainers = with lib.maintainers; [ romildo ];
mainProgram = "qtemu";
};
})