diff options
author | Andrew Marshall <andrew@johnandrewmarshall.com> | 2022-02-14 18:42:22 -0500 |
---|---|---|
committer | Andrew Marshall <andrew@johnandrewmarshall.com> | 2022-02-16 01:22:19 -0500 |
commit | c027cb0041ddbc73cc3e9894b97073c1cd6a9483 (patch) | |
tree | 3572aaed343acfda17262349844c65ff935d8750 /pkgs/applications/virtualization | |
parent | 0deb79e47b96975e51e303edf04f8bae2308fb7f (diff) | |
download | nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.gz nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.bz2 nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.lz nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.xz nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.zst nixlib-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.zip |
virt-viewer: Formatting
In preparation for updating the version where a lot of deps will have to change, so that the *next* diff is small and understandable.
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/virt-viewer/default.nix | 53 |
1 files changed, 45 insertions, 8 deletions
diff --git a/pkgs/applications/virtualization/virt-viewer/default.nix b/pkgs/applications/virtualization/virt-viewer/default.nix index 4fd56e0cae33..a7f9c4c37639 100644 --- a/pkgs/applications/virtualization/virt-viewer/default.nix +++ b/pkgs/applications/virtualization/virt-viewer/default.nix @@ -1,11 +1,31 @@ -{ lib, stdenv, fetchurl, pkg-config, intltool, shared-mime-info, wrapGAppsHook -, glib, gsettings-desktop-schemas, gtk-vnc, gtk3, libvirt, libvirt-glib, libxml2, vte +{ lib +, stdenv +, fetchurl +, gdbm ? null +, glib +, gsettings-desktop-schemas +, gtk-vnc +, gtk3 +, intltool +, libcap ? null +, libvirt +, libvirt-glib +, libxml2 +, pkg-config +, shared-mime-info +, spice-gtk ? null +, spice-protocol ? null , spiceSupport ? true -, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null +, vte +, wrapGAppsHook }: -assert spiceSupport -> - spice-gtk != null && spice-protocol != null && libcap != null && gdbm != null; +assert spiceSupport -> ( + gdbm != null + && libcap != null + && spice-gtk != null + && spice-protocol != null +); with lib; @@ -19,11 +39,28 @@ stdenv.mkDerivation rec { sha256 = "09a83mzyn3b4nd7wpa659g1zf1fjbzb79rk968bz6k5xl21k7d4i"; }; - nativeBuildInputs = [ pkg-config intltool shared-mime-info wrapGAppsHook glib ]; + nativeBuildInputs = [ + glib + intltool + pkg-config + shared-mime-info + wrapGAppsHook + ]; + buildInputs = [ - glib gsettings-desktop-schemas gtk-vnc gtk3 libvirt libvirt-glib libxml2 vte + glib + gsettings-desktop-schemas + gtk-vnc + gtk3 + libvirt + libvirt-glib + libxml2 + vte ] ++ optionals spiceSupport [ - spice-gtk spice-protocol libcap gdbm + gdbm + libcap + spice-gtk + spice-protocol ]; # Required for USB redirection PolicyKit rules file |