diff options
author | Joachim Schiele <js@lastlog.de> | 2012-05-06 19:25:01 +0000 |
---|---|---|
committer | Joachim Schiele <js@lastlog.de> | 2012-05-06 19:25:01 +0000 |
commit | f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428 (patch) | |
tree | 64acec2b25c9c69ef3c7f6f42991ced51b9818e2 /pkgs/applications | |
parent | e96679b97306213a27d56a4b5c693b9b7439d64d (diff) | |
download | nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.tar nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.tar.gz nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.tar.bz2 nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.tar.lz nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.tar.xz nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.tar.zst nixlib-f6c6bdda810835c4cdeaaf6bf9d7a30e45f10428.zip |
virt-manager is not working yet, but as we are not using git yet, i use this to cooperate with viric ;-)
svn path=/nixpkgs/trunk/; revision=33997
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/virtualization/virt-manager/default.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix new file mode 100644 index 000000000000..ec510d85f3c6 --- /dev/null +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -0,0 +1,69 @@ +x@{builderDefsPackage + , gnome, gtk, glib, libxml2, libvirt, gtkvnc, cyrus_sasl, libtasn1, wget,curl + , intltool, python + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + ["gnome"]; + + buildInputs = (map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames))) + ++ [gnome.libglade intltool python libvirt]; + sourceInfo = rec { + baseName="virt-manager"; + + version = "0.9.1"; + name = "virt-manager-${version}"; + url = "http://virt-manager.et.redhat.com/download/sources/virt-manager/virt-manager-${version}.tar.gz"; + hash = "15e064167ba5ff84ce6fc8790081d61890430f2967f89886a84095a23e40094a"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + patchPhase = a.fullDepEntry '' + substituteInPlace "src/virt-manager.in" --replace "exec /usr/bin/python" "exec ${python}/bin/python" + '' ["minInit"]; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = [ "doUnpack" "patchPhase" "doConfigure" "doMakeInstall"]; + + #configureFlags = [ + # --with-libvirt-package-names=libvirt \ + # --with-kvm-packages=qemu-system-x86 + + # --with-libvirt-package-names=libvirt \ + # --with-kvm-packages=qemu-kvm + + # --with-libvirt-package-names=%libvirt_packages \ + # --with-kvm-packages=%kvm_packages \ + # "--with-libvirt-package-names=libvirt.py" + #]; + + meta = { + homepage = http://virt-manager.org; + description = "The 'Virtual Machine Manager' application (virt-manager for short package name) is a desktop user interface for managing virtual machines."; + + maintainers = with a.lib.maintainers; + [ + qknight + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.gpl2; + }; + passthru = { + updateInfo = { + downloadPage = "http://virt-manager.org/download.html"; + }; + }; +}) x + |