summary refs log tree commit diff
path: root/pkgs/applications/virtualization/virtinst/default.nix
blob: 37f03d8772f54fd892737d079593fe94a0a15fc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib, stdenv, fetchurl, python2Packages, intltool, libxml2Python }:

with lib;

let version = "0.600.4"; in

stdenv.mkDerivation rec {
  pname = "virtinst";
  inherit 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 = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [qknight];
    description = "Command line tool which provides an easy way to provision operating systems into virtual machines";
    platforms = with lib.platforms; linux;
  };
}