1{ stdenv, fetchurl, makeWrapper, perl, perlPackages }:
2
3stdenv.mkDerivation rec {
4 name = "remotebox-${version}";
5 version = "2.4";
6
7 src = fetchurl {
8 url = "http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-${version}.tar.bz2";
9 sha256 = "14zcpzpdb5gxkxvckcdwq3mfv8b18zirbdskzddhqxjddkzayckz";
10 };
11
12 buildInputs = with perlPackages; [ perl Glib Gtk2 Pango SOAPLite ];
13 nativeBuildInputs = [ makeWrapper ];
14
15 installPhase = ''
16 mkdir -pv $out/bin
17
18 substituteInPlace remotebox --replace "\$Bin/" "\$Bin/../"
19 install -v -t $out/bin remotebox
20 wrapProgram $out/bin/remotebox --prefix PERL5LIB : $PERL5LIB
21
22 cp -av docs/ share/ $out
23
24 mkdir -pv $out/share/applications
25 cp -pv packagers-readme/*.desktop $out/share/applications
26 '';
27
28 meta = with stdenv.lib; {
29 description = "VirtualBox client with remote management";
30 homepage = http://remotebox.knobgoblin.org.uk/;
31 license = licenses.gpl2Plus;
32 longDescription = ''
33 VirtualBox is traditionally considered to be a virtualization solution
34 aimed at the desktop. While it is certainly possible to install
35 VirtualBox on a server, it offers few remote management features beyond
36 using the vboxmanage command line.
37 RemoteBox aims to fill this gap by providing a graphical VirtualBox
38 client which is able to manage a VirtualBox server installation.
39 '';
40 platforms = platforms.all;
41 };
42}