nixpkgs/pkgs/servers/misc/qremotecontrol-server/default.nix
Rick van Schijndel 9833d56c24 treewide: mark packages broken that never built on PLATFORM
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken
Tool is still WIP but this is one of the first results.

I manually audited the results and removed some results that were not valid.

Note that some of these packages maybe should have more constrained platforms set
instead of broken set, but I think not being perfectly correct is better than
just keep trying to build all these things and never succeeding.

Some observations:

- Some darwin builds require XCode tools
- aarch64-linux builds sometimes suffer from using gcc9
  - gcc9 is getting older and misses some new libraries/features
- Sometimes tools try to do system detection or expect some explicit settings for
  platforms that are not x86_64-linux
2022-12-13 21:40:12 +01:00

60 lines
1.8 KiB
Nix

{ lib
, stdenv
, fetchgit
, qmake
, wrapQtAppsHook
, qtbase
, xorg
}:
stdenv.mkDerivation rec {
pname = "qremotecontrol-server";
version = "unstable-2014-11-05"; # basically 2.4.2 + qt5
src = fetchgit {
url = "https://git.code.sf.net/p/qrc/gitcode";
rev = "8f1c55eac10ac8af974c3c20157d90ef57f7308a";
sha256 = "sha256-AfFScec5/emG/f+yc5Zn37USIEWzGP/sBifE6Kx8d0E=";
};
patches = [
./0001-fix-qt5-build-include-QDataStream.patch
];
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [
qtbase
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://sourceforge.net/projects/qrc/";
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.
'';
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin;
};
}