diff options
-rw-r--r-- | pkgs/applications/virtualization/remotebox/default.nix | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/pkgs/applications/virtualization/remotebox/default.nix b/pkgs/applications/virtualization/remotebox/default.nix index 14adddf8d1b8b..e07f8d5b92c93 100644 --- a/pkgs/applications/virtualization/remotebox/default.nix +++ b/pkgs/applications/virtualization/remotebox/default.nix @@ -1,40 +1,44 @@ -{ stdenv, fetchurl, perl, perlPackages }: +{ stdenv, fetchurl, makeWrapper, perl, perlPackages }: -stdenv.mkDerivation rec { - version = "1.9"; +let version = "2.0"; in +stdenv.mkDerivation { name = "remotebox-${version}"; src = fetchurl { - url = "${meta.homepage}/downloads/RemoteBox-${version}.tar.bz2"; - sha256 = "0vsfz2qmha9nz60fyksgqqyrw4lz9z2d5isnwqc6afn8z3i1qmkp"; + url = "http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-${version}.tar.bz2"; + sha256 = "0c73i53wdjd2m2sdgq3r3xp30irxh5z5rak2rk79yb686s6bv759"; }; - buildInputs = [ perl perlPackages.Gtk2 perlPackages.SOAPLite ]; + buildInputs = with perlPackages; [ perl Glib Gtk2 Pango SOAPLite ]; + nativeBuildInputs = [ makeWrapper ]; installPhase = '' - mkdir -p $out/bin - cp -a docs/ share/ $out + mkdir -pv $out/bin substituteInPlace remotebox --replace "\$Bin/" "\$Bin/../" - install -t $out/bin remotebox + install -v -t $out/bin remotebox + wrapProgram $out/bin/remotebox --prefix PERL5LIB : $PERL5LIB - mkdir -p $out/share/applications - cp -p packagers-readme/*.desktop $out/share/applications + cp -av docs/ share/ $out + + mkdir -pv $out/share/applications + cp -pv packagers-readme/*.desktop $out/share/applications ''; meta = with stdenv.lib; { + inherit version; description = "VirtualBox client with remote management"; homepage = http://remotebox.knobgoblin.org.uk/; license = licenses.gpl2Plus; longDescription = '' VirtualBox is traditionally considered to be a virtualization solution - aimed at the desktop. While it is certainly possible to install + aimed at the desktop. While it is certainly possible to install VirtualBox on a server, it offers few remote management features beyond using the vboxmanage command line. RemoteBox aims to fill this gap by providing a graphical VirtualBox client which is able to manage a VirtualBox server installation. ''; maintainers = with maintainers; [ nckx ]; - platforms = with platforms; all; + platforms = platforms.all; }; } |