Commit Graph

237 Commits

Author SHA1 Message Date
Weijia Wang
b83eab78d7 libvirt: increase timeout on darwin 2024-11-10 01:33:15 +01:00
Weijia Wang
69119368fd libvirt: 10.5.0 -> 10.9.0 2024-11-10 01:09:46 +01:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Fernando Rodrigues
947cb9658f
libvirt: enable xen
Xen is now maintained by yours truly, but libvirt currently doesn't work
as it's not built with the libxl driver.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-08-25 14:15:46 +00:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
R. Ryantm
414875a049 libvirt: 10.4.0 -> 10.5.0 2024-07-07 10:54:43 +00:00
Weijia Wang
1734b2c095 libvirt: disable more tests on darwin 2024-06-30 09:51:47 +02:00
Marie Ramlow
9c2647cf29 libvirt: 10.0.0 -> 10.4.0 2024-06-24 17:13:44 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Thomas Gerbet
3593d46b31 libvirt: apply patches for CVE-2024-2494 and CVE-2024-1441 2024-04-30 22:31:10 +02:00
Dan Rabinowitz
0eed0f1309 libvirt: Use valid runstatedir for Darwin
Some use cases require libvirtd to be run as root on MacOS due to https://gitlab.com/qemu-project/qemu/-/issues/465
Running libvirtd as root uses runstatedir for the pid, but /run is not a valid or standard path on MacOS.
2024-04-03 13:33:17 +02:00
Weijia Wang
d9f7187e8d libvirt: fix build on darwin 2024-02-10 20:00:09 +01:00
Andrew Marshall
df966328e0 libvirt: Fix broken when Kernel differs b/w current- and booted-system
Libvirt checks this path + $(uname -r), which is the running Kernel.
current-system does not necessarily contain the running Kernel, but
booted-system does.

Broken in ad78ce7764, which ignored the
discussion in https://github.com/NixOS/nixpkgs/pull/286330. It is still
broken on non-NixOS Linux.
2024-02-09 13:23:33 -05:00
Károly Sárdi
ad78ce7764 libvirt: fix hardcoded modules path 2024-02-07 13:27:47 +01:00
Matei Dibu
150c0721da
libvirt: 9.10.0 -> 10.0.0 2024-01-29 22:33:24 +01:00
R. Ryantm
9c0f59adc1 libvirt: 9.9.0 -> 9.10.0 2023-12-16 11:58:58 +00:00
Randy Eckenrode
3fa8a937df libvirt: Darwin fixes
* Reenable tests that work on Darwin; and
* Ignore the `-fsemantic-interposition` check. It doesn’t seem to affect
  Mach-O.
2023-11-15 15:45:35 +01:00
Ilan Joselevich
d20c21c8a1 libvirt: 9.7.0 -> 9.9.0 2023-11-11 13:29:52 +01:00
R. Ryantm
0a176dfc4c libvirt: 9.6.0 -> 9.7.0 2023-09-11 23:41:02 +00:00
Ilan Joselevich
3f2a40e34d
libvirt: 9.5.0 -> 9.6.0 2023-08-16 03:52:42 +03:00
R. Ryantm
af0cd7a997 libvirt: 9.4.0 -> 9.5.0 2023-07-09 03:20:40 +00:00
Franz Pletz
a8cc722232
libvirt: 9.2.0 -> 9.4.0 2023-06-21 13:34:49 +02:00
Weijia Wang
b4e891e9a4 libvirt: disable util-linux on darwin 2023-05-22 17:02:49 +03:00
Weijia Wang
c3a88e466e libvirt: fix build on darwin 2023-04-11 16:10:21 +03:00
R. Ryantm
0ad1f4aea3 libvirt: 9.1.0 -> 9.2.0 2023-04-10 01:57:03 +00:00
Bjørn Forsman
81aca8ff98 libvirt: add missing 'ssh' to $PATH
Fixes this error when trying to migrate a VM using Connectivity Mode
Tunneled:

  Unable to migrate guest: Cannot find 'ssh' in path: No such file or directory

Fixes https://github.com/NixOS/nixpkgs/issues/221815
2023-03-18 22:29:12 +01:00
R. Ryantm
ea0e64eb3f libvirt: 9.0.0 -> 9.1.0 2023-03-01 19:20:56 +00:00
Yureka
d15b268284 pkgsMusl.libvirt: fix build 2023-02-19 00:06:36 +01:00
Felix Buehler
cdb39a86e0 treewide: use optionalString 2023-02-13 21:52:34 +01:00
Shawn8901
a59dda942c treewide: remove global with lib; statements in pkgs/development 2023-01-26 18:31:02 +01:00
Franz Pletz
608528afe6
libvirt: 8.10.0 -> 9.0.0 2023-01-17 08:16:16 +01:00
Alexander Bakker
89f4a5ab26 libvirtd: add parallelShutdown option
This adds a new ``parallelShutdown`` option that allows users to control
how many guests can be shut down concurrently. Allowing multiple virtual
machines to be shut down at the same time reduces the amount of time it
takes to reboot the host.

Upstream documentation: https://www.libvirt.org/manpages/libvirt-guests.html#files
2022-12-26 17:34:02 +01:00
Mario Rodas
7e0c2c1835 libvirt: add changelog to meta 2022-12-03 04:20:00 +00:00
R. Ryantm
32c854e0e4 libvirt: 8.9.0 -> 8.10.0 2022-12-02 19:09:10 +00:00
Josh Hoffer
065af61142 libvirt, perlPackages.SysVirt: 8.8.0 -> 8.9.0 2022-11-28 00:37:07 -07:00
Nathan Henrie
30260eac70 libvirt: fix running EFI VM images on aarch64-darwin 2022-11-07 16:17:02 -07:00
R. Ryantm
032490f3bf libvirt: 8.7.0 -> 8.8.0 2022-10-05 04:34:44 +02:00
Robert Hensing
092bb3c6e0 python3Packages.libvirt: Fix build on darwin
The `zfs` package is not supported on darwin at all, resulting in
an evaluation error.
This change conditionally removes the patch that tried to introduce
the dependency regardless of that fact in f00d562080,
https://github.com/NixOS/nixpkgs/pull/191552
2022-10-04 17:57:03 +02:00
Franz Pletz
04dbd6298c
Merge pull request #191086 from Artturin/libvirtstrict 2022-09-18 15:11:24 +02:00
Tako Marks
f00d562080 libvirtd: use nix paths for zfs userspace tools
Libvirt zfs storage driver makes use of zfs userspace tools to get the
neccesary information. This patch sets correct nix store paths for these
tools.
2022-09-16 21:57:46 +02:00
Artturin
ff10b20c5d libvirt: enable strictDeps
fix cross

remove unneeded deps and args

remove closure dependencies on buildtime tools
confirmed with `nix path-info -rsSh ./result`
2022-09-16 02:25:54 +03:00
Franz Pletz
88199c6df9
Merge pull request #190379 from SuperSandro2000/libvirt
libvirt: fix cross compile
2022-09-12 03:54:42 +02:00
Sandro Jäckel
8376aee278
libvirt: fix cross compile 2022-09-08 21:57:12 +02:00
R. Ryantm
b67ef2b885 libvirt: 8.6.0 -> 8.7.0 2022-09-08 10:42:51 +00:00
Sandro Jäckel
6dfe57adf6
libvirt: remove ? null from packages which have boolean inputs, normalize meta.description 2022-08-25 23:51:18 +02:00
Franz Pletz
38c67944cb nixos/tests/libvirtd: init 2022-08-22 22:41:32 +02:00
Franz Pletz
602fcc8608
libvirt: hardcode path to parted
fixes #182835
2022-08-22 05:17:45 +02:00
Franz Pletz
2bdcc9e537
libvirt: 8.5.0 -> 8.6.0 2022-08-22 02:00:03 +02:00
Weijia Wang
3f383c75ef libvirt: fix build on x86_64-darwin 2022-08-06 12:01:58 +02:00
Weijia Wang
32b6f46ec0 libvirt: fix build on darwin 2022-08-03 01:56:44 +02:00