summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/virtualization/qtemu/default.nix
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2020-04-10 16:55:23 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2020-04-11 18:42:05 -0300
commita4b7440f414b24f37b37c65b99485e7106655fe5 (patch)
treec7f70c14a3b00503eb7f7ac01791f5dcc7fb1942 /pkgs/applications/virtualization/qtemu/default.nix
parent87d321776199bdeb1febfffebac3d496644bd5db (diff)
qtemu: init at 2.1
Diffstat (limited to 'pkgs/applications/virtualization/qtemu/default.nix')
-rw-r--r--pkgs/applications/virtualization/qtemu/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/qtemu/default.nix b/pkgs/applications/virtualization/qtemu/default.nix
new file mode 100644
index 000000000000..29f0004be830
--- /dev/null
+++ b/pkgs/applications/virtualization/qtemu/default.nix
@@ -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 ];
+ };
+}