mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
55 lines
1.1 KiB
Nix
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";
|
|
};
|
|
})
|