2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-08-09 11:41:19 +02:00
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, bluez
|
|
|
|
, libX11
|
|
|
|
, libXtst
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "urserver";
|
2021-08-13 15:10:27 +02:00
|
|
|
version = "3.10.0.2467";
|
2020-08-09 11:41:19 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-28 19:18:51 +01:00
|
|
|
url = "https://www.unifiedremote.com/static/builds/server/linux-x64/${builtins.elemAt (builtins.splitVersion version) 3}/urserver-${version}.tar.gz";
|
2021-08-13 15:10:27 +02:00
|
|
|
sha256 = "sha256-IaLRhia6mb4h7x5MbBRtPJxJ3uTlkfOzmoTwYzwfbWA=";
|
2020-08-09 11:41:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
2021-02-28 19:18:51 +01:00
|
|
|
makeWrapper
|
2020-08-09 11:41:19 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
bluez
|
|
|
|
libX11
|
|
|
|
libXtst
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D urserver $out/bin/urserver
|
2021-01-15 08:07:56 +01:00
|
|
|
wrapProgram $out/bin/urserver --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}"
|
2020-08-09 11:41:19 +02:00
|
|
|
cp -r remotes $out/bin/remotes
|
|
|
|
cp -r manager $out/bin/manager
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-09 11:41:19 +02:00
|
|
|
homepage = "https://www.unifiedremote.com/";
|
|
|
|
description = "The one-and-only remote for your computer";
|
2022-06-11 13:39:29 +02:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-08-09 11:41:19 +02:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ sfrijters ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|