qemu: 8.0.3 -> 8.0.4
While at it added a trivial updater. Changes: https://www.mail-archive.com/qemu-devel@nongnu.org/msg981379.html
This commit is contained in:
parent
32e841474f
commit
8af0d023f6
@ -37,6 +37,7 @@
|
|||||||
, nixosTestRunner ? false
|
, nixosTestRunner ? false
|
||||||
, doCheck ? false
|
, doCheck ? false
|
||||||
, qemu # for passthru.tests
|
, qemu # for passthru.tests
|
||||||
|
, gitUpdater
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -48,11 +49,11 @@ stdenv.mkDerivation rec {
|
|||||||
+ lib.optionalString xenSupport "-xen"
|
+ lib.optionalString xenSupport "-xen"
|
||||||
+ lib.optionalString hostCpuOnly "-host-cpu-only"
|
+ lib.optionalString hostCpuOnly "-host-cpu-only"
|
||||||
+ lib.optionalString nixosTestRunner "-for-vm-tests";
|
+ lib.optionalString nixosTestRunner "-for-vm-tests";
|
||||||
version = "8.0.3";
|
version = "8.0.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.qemu.org/qemu-${version}.tar.xz";
|
url = "https://download.qemu.org/qemu-${version}.tar.xz";
|
||||||
hash = "sha256-7PTTLL7505e/yMxQ5NHpKhswJTvzLo7nPHqNz5ojKwk=";
|
hash = "sha256-gcgX3aOK+Vi+W+8abPVbZYuy0/uHwealcd5reyxEUWw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ]
|
depsBuildBuild = [ buildPackages.stdenv.cc ]
|
||||||
@ -249,6 +250,12 @@ stdenv.mkDerivation rec {
|
|||||||
tests = {
|
tests = {
|
||||||
qemu-tests = qemu.override { doCheck = true; };
|
qemu-tests = qemu.override { 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).*";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Builds in ~3h with 2 cores, and ~20m with a big-parallel builder.
|
# Builds in ~3h with 2 cores, and ~20m with a big-parallel builder.
|
||||||
|
Loading…
Reference in New Issue
Block a user