about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/virtualization/virtinst/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/virtualization/virtinst/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/virtualization/virtinst/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/virtualization/virtinst/default.nix b/nixpkgs/pkgs/applications/virtualization/virtinst/default.nix
new file mode 100644
index 000000000000..8222fb50a8f9
--- /dev/null
+++ b/nixpkgs/pkgs/applications/virtualization/virtinst/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchurl, python2Packages, intltool, libxml2Python }:
+
+with stdenv.lib;
+
+let version = "0.600.4"; in
+
+stdenv.mkDerivation rec {
+  name = "virtinst-${version}";
+
+  src = fetchurl {
+    url = "http://virt-manager.org/download/sources/virtinst/virtinst-${version}.tar.gz";
+    sha256 = "175laiy49dni8hzi0cn14bbsdsigvgr9h6d9z2bcvbpa29spldvf";
+  };
+
+  pythonPath = with python2Packages;
+    [ setuptools eventlet greenlet gflags netaddr carrot routes
+      PasteDeploy m2crypto ipy twisted
+      distutils_extra simplejson cheetah lockfile httplib2
+      # !!! should libvirt be a build-time dependency?  Note that
+      # libxml2Python is a dependency of libvirt.py.
+      libvirt libxml2Python urlgrabber
+    ];
+
+  buildInputs =
+    [ python2Packages.python
+      python2Packages.wrapPython
+      python2Packages.mox
+      intltool
+    ] ++ pythonPath;
+
+  buildPhase = "python setup.py build";
+
+  installPhase =
+    ''
+       python setup.py install --prefix="$out";
+       wrapPythonPrograms
+    '';
+
+  meta = {
+    homepage = http://virt-manager.org;
+    license = stdenv.lib.licenses.gpl2Plus;
+    maintainers = with stdenv.lib.maintainers; [qknight];
+    description = "Command line tool which provides an easy way to provision operating systems into virtual machines";
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}