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