nixpkgs/pkgs/by-name/ur/urserver/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-08-09 09:41:19 +00:00
, fetchurl
, autoPatchelfHook
, bluez
, libX11
, libXtst
, makeWrapper
}:
stdenv.mkDerivation (finalAttrs: {
2020-08-09 09:41:19 +00:00
pname = "urserver";
2024-03-25 10:35:25 +00:00
version = "3.13.0.2505";
2020-08-09 09:41:19 +00:00
src = fetchurl {
url = "https://www.unifiedremote.com/static/builds/server/linux-x64/${builtins.elemAt (builtins.splitVersion finalAttrs.version) 3}/urserver-${finalAttrs.version}.tar.gz";
2024-03-25 10:35:25 +00:00
hash = "sha256-rklv6Ppha1HhEPunbL8ELYdQ9Z1FN4FrVsNwny3/gA4=";
2020-08-09 09:41:19 +00:00
};
nativeBuildInputs = [
autoPatchelfHook
2021-02-28 18:18:51 +00:00
makeWrapper
2020-08-09 09:41:19 +00:00
];
buildInputs = [
(lib.getLib stdenv.cc.cc)
2020-08-09 09:41:19 +00:00
bluez
libX11
libXtst
];
installPhase = ''
install -m755 -D urserver $out/bin/urserver
wrapProgram $out/bin/urserver --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}"
2020-08-09 09:41:19 +00:00
cp -r remotes $out/bin/remotes
cp -r manager $out/bin/manager
'';
meta = with lib; {
2020-08-09 09:41:19 +00:00
homepage = "https://www.unifiedremote.com/";
description = "One-and-only remote for your computer";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2020-08-09 09:41:19 +00:00
license = licenses.unfree;
maintainers = with maintainers; [ sfrijters ];
platforms = [ "x86_64-linux" ];
};
})