about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/virtinst/default.nix
diff options
context:
space:
mode:
authorJoachim Schiele <js@lastlog.de>2012-05-10 19:29:54 +0000
committerJoachim Schiele <js@lastlog.de>2012-05-10 19:29:54 +0000
commit2a6579bdb6837a0e962ef0c37600639312fef02a (patch)
treeb856591699cd0a9b870d503fb286a5bc4c4959d3 /pkgs/applications/virtualization/virtinst/default.nix
parent203b85334a5a7286046298e0452f98b86115f145 (diff)
downloadnixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.tar
nixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.tar.gz
nixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.tar.bz2
nixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.tar.lz
nixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.tar.xz
nixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.tar.zst
nixlib-2a6579bdb6837a0e962ef0c37600639312fef02a.zip
virtinst installs now. still most tools don't work and virt-manager still has problems with finding libvirt.
svn path=/nixpkgs/trunk/; revision=34052
Diffstat (limited to 'pkgs/applications/virtualization/virtinst/default.nix')
-rw-r--r--pkgs/applications/virtualization/virtinst/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/virtinst/default.nix b/pkgs/applications/virtualization/virtinst/default.nix
new file mode 100644
index 000000000000..0c574db23911
--- /dev/null
+++ b/pkgs/applications/virtualization/virtinst/default.nix
@@ -0,0 +1,52 @@
+{ stdenv, fetchurl, pythonPackages, intltool, libvirt, libxml2Python, curl }:
+
+with stdenv.lib;
+
+let version = "0.600.1"; in
+
+stdenv.mkDerivation rec {
+  name = "virtinst-${version}";
+
+  src = fetchurl {
+    url = "http://virt-manager.org/download/sources/virtinst/virtinst-${version}.tar.gz";
+    sha256 = "db342cf93aae1f23df02001bdb0b0cc2c5bf675dca37b4417f5a79bf5a374716";
+  };
+
+  pythonPath = with pythonPackages;
+    [ setuptools eventlet greenlet gflags netaddr sqlalchemy carrot routes
+      paste_deploy m2crypto ipy boto_1_9 twisted sqlalchemy_migrate
+      distutils_extra simplejson readline glance cheetah lockfile httplib2
+      # !!! should libvirt be a build-time dependency?  Note that
+      # libxml2Python is a dependency of libvirt.py. 
+      libvirt libxml2Python
+    ];
+
+  buildInputs =
+    [ pythonPackages.python 
+      pythonPackages.wrapPython
+      pythonPackages.mox
+      intltool
+    ] ++ pythonPath;
+
+  buildPhase = "python setup.py build";
+
+  PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
+
+#      substituteInPlace nova/api/ec2/cloud.py \
+#        --replace 'sh genrootca.sh' $out/libexec/nova/genrootca.sh
+#    '';
+
+  installPhase =
+    ''    
+       python setup.py install --prefix="$out";
+    '';
+
+  #checkPhase = "python setup.py test";
+
+  meta = {
+    homepage = http://virt-manager.org;
+    license = "GPLv2+";
+    maintainers = with stdenv.lib.maintainers; [qknight];
+    description = "The Virt Install tool (virt-install for short command name, virtinst for package name) is a command line tool which provides an easy way to provision operating systems into virtual machines.";
+  };
+}