Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 1.1 kB view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitLab, 5 pkg-config, 6 qmake, 7 qtbase, 8 qemu, 9}: 10 11mkDerivation rec { 12 pname = "qtemu"; 13 version = "2.1"; 14 15 src = fetchFromGitLab { 16 owner = "qtemu"; 17 repo = "gui"; 18 rev = version; 19 sha256 = "1555178mkfw0gwmw8bsxmg4339j2ifp0yb4b2f39nxh9hwshg07j"; 20 }; 21 22 nativeBuildInputs = [ 23 qmake 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 qtbase 29 qemu 30 ]; 31 32 installPhase = '' 33 runHook preInstall 34 35 # upstream lacks an install method 36 install -D -t $out/share/applications qtemu.desktop 37 install -D -t $out/share/pixmaps qtemu.png 38 install -D -t $out/bin qtemu 39 40 # make sure that the qemu-* executables are found 41 wrapProgram $out/bin/qtemu --prefix PATH : ${lib.makeBinPath [ qemu ]} 42 43 runHook postInstall 44 ''; 45 46 meta = with lib; { 47 description = "Qt-based front-end for QEMU emulator"; 48 homepage = "https://qtemu.org"; 49 license = licenses.gpl2; 50 platforms = with platforms; linux; 51 maintainers = with maintainers; [ romildo ]; 52 mainProgram = "qtemu"; 53 }; 54}