2016-11-08 15:40:39 +01:00
|
|
|
{ stdenv, fetchurl, python2Packages, intltool, libxml2Python, curl }:
|
2012-05-10 21:29:54 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-01-10 18:54:57 +01:00
|
|
|
let version = "0.600.4"; in
|
2012-05-10 21:29:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "virtinst-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://virt-manager.org/download/sources/virtinst/virtinst-${version}.tar.gz";
|
2014-01-10 18:54:57 +01:00
|
|
|
sha256 = "175laiy49dni8hzi0cn14bbsdsigvgr9h6d9z2bcvbpa29spldvf";
|
2012-05-10 21:29:54 +02:00
|
|
|
};
|
|
|
|
|
2016-11-08 15:40:39 +01:00
|
|
|
pythonPath = with python2Packages;
|
2016-03-21 21:09:20 +01:00
|
|
|
[ setuptools eventlet greenlet gflags netaddr carrot routes
|
2016-03-15 13:55:17 +01:00
|
|
|
PasteDeploy m2crypto ipy twisted
|
2016-10-14 00:03:12 +02:00
|
|
|
distutils_extra simplejson glanceclient cheetah lockfile httplib2
|
2012-05-10 21:29:54 +02:00
|
|
|
# !!! should libvirt be a build-time dependency? Note that
|
2015-10-15 15:01:05 +02:00
|
|
|
# libxml2Python is a dependency of libvirt.py.
|
2013-02-05 18:15:58 +01:00
|
|
|
libvirt libxml2Python urlgrabber
|
2012-05-10 21:29:54 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
2016-11-08 15:40:39 +01:00
|
|
|
[ python2Packages.python
|
|
|
|
python2Packages.wrapPython
|
|
|
|
python2Packages.mox
|
2012-05-10 21:29:54 +02:00
|
|
|
intltool
|
|
|
|
] ++ pythonPath;
|
|
|
|
|
|
|
|
buildPhase = "python setup.py build";
|
|
|
|
|
|
|
|
installPhase =
|
2013-02-05 18:15:58 +01:00
|
|
|
''
|
2012-05-10 21:29:54 +02:00
|
|
|
python setup.py install --prefix="$out";
|
2013-02-05 18:15:58 +01:00
|
|
|
wrapPythonPrograms
|
2012-05-10 21:29:54 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://virt-manager.org;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-05-10 21:29:54 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [qknight];
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Command line tool which provides an easy way to provision operating systems into virtual machines";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2012-05-10 21:29:54 +02:00
|
|
|
};
|
|
|
|
}
|