diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/virtualization/qemu/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/virtualization/qemu/default.nix | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/nixpkgs/pkgs/applications/virtualization/qemu/default.nix b/nixpkgs/pkgs/applications/virtualization/qemu/default.nix index fef89eb10023..8da8d12cb5f9 100644 --- a/nixpkgs/pkgs/applications/virtualization/qemu/default.nix +++ b/nixpkgs/pkgs/applications/virtualization/qemu/default.nix @@ -35,24 +35,23 @@ ++ ["${stdenv.hostPlatform.qemuArch}-softmmu"]) else null) , nixosTestRunner ? false -, doCheck ? false -, qemu # for passthru.tests +, gitUpdater }: let hexagonSupport = hostCpuTargets == null || lib.elem "hexagon" hostCpuTargets; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "qemu" + lib.optionalString xenSupport "-xen" + lib.optionalString hostCpuOnly "-host-cpu-only" + lib.optionalString nixosTestRunner "-for-vm-tests"; - version = "8.0.3"; + version = "8.0.4"; src = fetchurl { - url = "https://download.qemu.org/qemu-${version}.tar.xz"; - hash = "sha256-7PTTLL7505e/yMxQ5NHpKhswJTvzLo7nPHqNz5ojKwk="; + url = "https://download.qemu.org/qemu-${finalAttrs.version}.tar.xz"; + hash = "sha256-gcgX3aOK+Vi+W+8abPVbZYuy0/uHwealcd5reyxEUWw="; }; depsBuildBuild = [ buildPackages.stdenv.cc ] @@ -206,7 +205,7 @@ stdenv.mkDerivation rec { preBuild = "cd build"; # tests can still timeout on slower systems - inherit doCheck; + doCheck = false; nativeCheckInputs = [ socat ]; preCheck = '' # time limits are a little meagre for a build machine that's @@ -247,7 +246,13 @@ stdenv.mkDerivation rec { passthru = { qemu-system-i386 = "bin/qemu-system-i386"; tests = { - qemu-tests = qemu.override { doCheck = true; }; + qemu-tests = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; }); + }; + updateScript = gitUpdater { + # No nicer place to find latest release. + url = "https://gitlab.com/qemu-project/qemu.git"; + rev-prefix = "v"; + ignoredVersions = "(alpha|beta|rc).*"; }; }; @@ -262,4 +267,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ eelco qyliss ]; platforms = platforms.unix; }; -} +}) |