diff options
author | Atemu <atemu.main@gmail.com> | 2022-10-28 11:28:43 +0200 |
---|---|---|
committer | Atemu <atemu.main@gmail.com> | 2022-10-28 13:10:13 +0200 |
commit | a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78 (patch) | |
tree | bff5cd86e5f26aea68f0f06ac68312ed2a5a047a | |
parent | 88880a8fb3d99c91a26ad9e0cf8db9956ab8173a (diff) | |
download | nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.tar nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.tar.gz nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.tar.bz2 nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.tar.lz nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.tar.xz nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.tar.zst nixpkgs-a3b93ae5f5ab0ef3b2826e19445c27a80d7ecf78.zip |
virt-viewer: darwin support
-rw-r--r-- | pkgs/applications/virtualization/virt-viewer/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/applications/virtualization/virt-viewer/default.nix b/pkgs/applications/virtualization/virt-viewer/default.nix index ed882709aa1..2e8aa34286a 100644 --- a/pkgs/applications/virtualization/virt-viewer/default.nix +++ b/pkgs/applications/virtualization/virt-viewer/default.nix @@ -29,7 +29,7 @@ assert spiceSupport -> ( gdbm != null - && libcap != null + && (stdenv.isLinux -> libcap != null) && spice-gtk_libsoup2 != null && spice-protocol != null ); @@ -76,12 +76,13 @@ stdenv.mkDerivation rec { libvirt-glib libxml2 vte - ] ++ optionals spiceSupport [ + ] ++ optionals spiceSupport ([ gdbm - libcap spice-gtk_libsoup2 spice-protocol - ]; + ] ++ optionals stdenv.isLinux [ + libcap + ]); # Required for USB redirection PolicyKit rules file propagatedUserEnvPkgs = optional spiceSupport spice-gtk_libsoup2; @@ -94,8 +95,8 @@ stdenv.mkDerivation rec { meta = { description = "A viewer for remote virtual machines"; - maintainers = [ maintainers.raskin ]; - platforms = platforms.linux; + maintainers = with maintainers; [ raskin atemu ]; + platforms = with platforms; linux ++ darwin; license = licenses.gpl2; }; passthru = { |