forked from mirrors/nixpkgs
qtemu: init at 2.1
This commit is contained in:
parent
87d3217761
commit
a4b7440f41
45
pkgs/applications/virtualization/qtemu/default.nix
Normal file
45
pkgs/applications/virtualization/qtemu/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, mkDerivation, fetchFromGitLab, pkgconfig, qmake, qtbase, qemu, makeWrapper }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "qtemu";
|
||||
version = "2.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "qtemu";
|
||||
repo = "gui";
|
||||
rev = version;
|
||||
sha256 = "1555178mkfw0gwmw8bsxmg4339j2ifp0yb4b2f39nxh9hwshg07j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
pkgconfig
|
||||
];
|
||||
|
||||
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
|
||||
wrapProgram $out/bin/qtemu --prefix PATH : ${stdenv.lib.makeBinPath [ qemu ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Qt-based front-end for QEMU emulator";
|
||||
homepage = "https://qtemu.org";
|
||||
license = licenses.gpl2;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
|
@ -21421,6 +21421,8 @@ in
|
|||
|
||||
qtchan = libsForQt5.callPackage ../applications/networking/browsers/qtchan { };
|
||||
|
||||
qtemu = libsForQt5.callPackage ../applications/virtualization/qtemu { };
|
||||
|
||||
qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { };
|
||||
|
||||
qtpass = libsForQt5.callPackage ../applications/misc/qtpass { };
|
||||
|
|
Loading…
Reference in a new issue