1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/servers/misc/qremotecontrol-server/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

47 lines
1.5 KiB
Nix

{ lib, stdenv
, fetchurl
, qmake4Hook
, qt4
, xorg
}:
stdenv.mkDerivation rec {
pname = "qremotecontrol-server";
version = "2.4.1";
src = fetchurl {
url = "mirror://sourceforge/project/qrc/${version}/qremotecontrol-${version}.tar.bz2";
sha256 = "07hzc9959a56b49jgmcv8ry8b9sppklvqs9kns3qjj3v9d22nbrp";
};
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ qt4 xorg.libXtst ];
postPatch = ''
substituteInPlace QRemoteControl-Server.pro \
--replace /usr $out
'';
meta = with lib; {
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ fgaz ];
homepage = "https://qremote.org/";
downloadPage = "https://qremote.org/download.php#Download";
description = "Remote control your desktop from your mobile";
longDescription = ''
With QRemoteControl installed on your desktop you can easily control
your computer via WiFi from your mobile. By using the touch pad of your
Phone you can for example open the internet browser and navigate to
the pages you want to visit, use the music player or your media center
without being next to your PC or laptop. Summarizing QRemoteControl
allows you to do almost everything you would be able to do with a
mouse and a keyboard, but from a greater distance. To make these
replacements possible QRemoteControl offers you a touch pad, a
keyboard, multimedia keys and buttons for starting applications. Even
powering on the computer via Wake On Lan is supported.
'';
};
}