summary refs log tree commit diff
path: root/pkgs/applications/virtualization/virt-viewer
diff options
context:
space:
mode:
authorAndrew Marshall <andrew@johnandrewmarshall.com>2022-02-14 18:42:22 -0500
committerAndrew Marshall <andrew@johnandrewmarshall.com>2022-02-16 01:22:19 -0500
commitc027cb0041ddbc73cc3e9894b97073c1cd6a9483 (patch)
tree3572aaed343acfda17262349844c65ff935d8750 /pkgs/applications/virtualization/virt-viewer
parent0deb79e47b96975e51e303edf04f8bae2308fb7f (diff)
downloadnixpkgs-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar
nixpkgs-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.gz
nixpkgs-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.bz2
nixpkgs-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.lz
nixpkgs-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.xz
nixpkgs-c027cb0041ddbc73cc3e9894b97073c1cd6a9483.tar.zst
nixpkgs-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/virt-viewer')
-rw-r--r--pkgs/applications/virtualization/virt-viewer/default.nix53
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 4fd56e0cae3..a7f9c4c3763 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