mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl, makeWrapper, perl, perlPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "remotebox";
|
|
version = "2.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-${version}.tar.bz2";
|
|
sha256 = "0csf6gd7pqq4abia4z0zpzlq865ri1z0821kjy7p3iawqlfn75pb";
|
|
};
|
|
|
|
buildInputs = with perlPackages; [ perl Glib Gtk2 Pango SOAPLite ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -pv $out/bin
|
|
|
|
substituteInPlace remotebox --replace "\$Bin/" "\$Bin/../"
|
|
install -v -t $out/bin remotebox
|
|
wrapProgram $out/bin/remotebox --prefix PERL5LIB : $PERL5LIB
|
|
|
|
cp -av docs/ share/ $out
|
|
|
|
mkdir -pv $out/share/applications
|
|
cp -pv packagers-readme/*.desktop $out/share/applications
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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
|
|
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.
|
|
'';
|
|
platforms = platforms.all;
|
|
mainProgram = "remotebox";
|
|
};
|
|
}
|