uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
105
pkgs/applications/virtualization/virt-viewer/default.nix
Normal file
105
pkgs/applications/virtualization/virt-viewer/default.nix
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, bash-completion
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, gdbm ? null
|
||||
, glib
|
||||
, gsettings-desktop-schemas
|
||||
, gtk-vnc
|
||||
, gtk3
|
||||
, intltool
|
||||
, libcap ? null
|
||||
, libgovirt
|
||||
, libvirt
|
||||
, libvirt-glib
|
||||
, libxml2
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, python3
|
||||
, shared-mime-info
|
||||
, spice-gtk ? null
|
||||
, spice-protocol ? null
|
||||
, spiceSupport ? true
|
||||
, vte
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
assert spiceSupport -> (
|
||||
gdbm != null
|
||||
&& libcap != null
|
||||
&& spice-gtk != null
|
||||
&& spice-protocol != null
|
||||
);
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "virt-viewer";
|
||||
version = "11.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://releases.pagure.org/virt-viewer/virt-viewer-${version}.tar.xz";
|
||||
sha256 = "sha256-pD+iMlxMHHelyMmAZaww7wURohrJjlkPIjQIabrZq9A=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with meson 0.61
|
||||
# https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/117
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/virt-viewer/virt-viewer/-/commit/ed19e51407bee53988878a6ebed4e7279d00b1a1.patch";
|
||||
sha256 = "sha256-3AbnkbhWOh0aNjUkmVoSV/9jFQtvTllOr7plnkntb2o=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
glib
|
||||
intltool
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
python3
|
||||
shared-mime-info
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
bash-completion
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
gtk-vnc
|
||||
gtk3
|
||||
libgovirt
|
||||
libvirt
|
||||
libvirt-glib
|
||||
libxml2
|
||||
vte
|
||||
] ++ optionals spiceSupport [
|
||||
gdbm
|
||||
libcap
|
||||
spice-gtk
|
||||
spice-protocol
|
||||
];
|
||||
|
||||
# Required for USB redirection PolicyKit rules file
|
||||
propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs build-aux/post_install.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A viewer for remote virtual machines";
|
||||
maintainers = [ maintainers.raskin ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://virt-manager.org/download.html";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue