Skip to content

virt-manager: support building on darwin#113306

Closed
basvandijk wants to merge 1 commit intoNixOS:masterfrom
basvandijk:virt-manager-darwin
Closed

virt-manager: support building on darwin#113306
basvandijk wants to merge 1 commit intoNixOS:masterfrom
basvandijk:virt-manager-darwin

Conversation

@basvandijk
Copy link
Member

Motivation for this change

This enables building and running virt-manager on darwin.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Feb 16, 2021
@basvandijk
Copy link
Member Author

@GrahamcOfBorg build virt-manager

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Feb 16, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 16, 2021
@r-rmcgibbo
Copy link

r-rmcgibbo commented Feb 16, 2021

Result of nixpkgs-review pr 113306 at b88422c run on x86_64-linux 1

4 packages built:
2 suggestions:
  • warning: maintainers-missing

    Package does not have a maintainer. Consider adding yourself?

    Near pkgs/development/libraries/libvirt-glib/default.nix:25:3:

       |
    25 |   meta = with lib; {
       |   ^
    
  • warning: unused-argument

    Unused argument: glib.
    Near pkgs/applications/virtualization/virt-manager/default.nix:4:30:

      |
    4 | , gsettings-desktop-schemas, glib, libosinfo, gnome3
      |                              ^
    

Result of nixpkgs-review pr 113306 at b88422c run on aarch64-linux 1

4 packages built:
2 suggestions:
  • warning: maintainers-missing

    Package does not have a maintainer. Consider adding yourself?

    Near pkgs/development/libraries/libvirt-glib/default.nix:25:3:

       |
    25 |   meta = with lib; {
       |   ^
    
  • warning: unused-argument

    Unused argument: glib.
    Near pkgs/applications/virtualization/virt-manager/default.nix:4:30:

      |
    4 | , gsettings-desktop-schemas, glib, libosinfo, gnome3
      |                              ^
    

{ lib, stdenv, fetchurl, python3Packages, intltool, file
, wrapGAppsHook, gtk-vnc, vte, avahi, dconf
, gobject-introspection, libvirt-glib, system-libvirt
, gsettings-desktop-schemas, glib, libosinfo, gnome3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
, gsettings-desktop-schemas, glib, libosinfo, gnome3
, gsettings-desktop-schemas, glib, libosinfo, gnome3
Suggested change
, gsettings-desktop-schemas, glib, libosinfo, gnome3
, gsettings-desktop-schemas, libosinfo, gnome3

, gsettings-desktop-schemas, glib, libosinfo, gnome3
, gtksourceview4, docutils
, spiceSupport ? true, spice-gtk ? null
, spiceSupport ? !stdenv.isDarwin, spice-gtk ? null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
, spiceSupport ? !stdenv.isDarwin, spice-gtk ? null
, spiceSupport ? !stdenv.isDarwin, spice-gtk

Comment on lines +32 to +34
]
++ optional spiceSupport spice-gtk
++ optionals (!stdenv.isDarwin) [ gtk-vnc vte ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
]
++ optional spiceSupport spice-gtk
++ optionals (!stdenv.isDarwin) [ gtk-vnc vte ];
] ++ optional spiceSupport spice-gtk
++ optionals (!stdenv.isDarwin) [ gtk-vnc vte ];

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 113306 run on x86_64-linux 1

4 packages built:
  • gnome3.gnome-boxes
  • libvirt-glib
  • virt-manager
  • virt-viewer

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

gnome3.gnome-boxes:

Details

gpl3 is a deprecated license, check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.

Near pkgs/desktops/gnome-3/apps/gnome-boxes/default.nix:141:5:

    |
141 |     license = licenses.gpl3;
    |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

libvirt-glib:
Details

Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/libraries/libvirt-glib/default.nix:25:3:

   |
25 |   meta = with lib; {
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md
gobject-introspection is a build tool so it likely goes to nativeBuildInputs, not buildInputs.

Near pkgs/development/libraries/libvirt-glib/default.nix:19:3:

   |
19 |   buildInputs = [ libvirt libxml2 gobject-introspection ]
   |   ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/build-tools-in-build-inputs.md

virt-manager:
Details

Unused argument: glib.
Near pkgs/applications/virtualization/virt-manager/default.nix:4:30:

  |
4 | , gsettings-desktop-schemas, glib, libosinfo, gnome3
  |                              ^
virt-viewer:
Details

gpl2 is a deprecated license, check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.

Near pkgs/applications/virtualization/virt-viewer/default.nix:39:5:

   |
39 |     license = licenses.gpl2;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

@siraben
Copy link
Member

siraben commented Mar 7, 2021

Please resolve the merge conflict.

@stale
Copy link

stale bot commented Sep 6, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 6, 2021
@mikroskeem
Copy link
Member

Any updates on this?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 27, 2021
@AndersonTorres
Copy link
Member

Closing because #152350 will supercede this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants