2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv,
|
2017-10-03 12:43:40 +01:00
|
|
|
fetchFromGitHub, fetchpatch,
|
2021-01-19 06:50:56 +00:00
|
|
|
webos, cmake, pkg-config,
|
2020-04-28 04:29:39 +01:00
|
|
|
libusb-compat-0_1 }:
|
2017-10-03 12:43:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "novacomd";
|
2017-10-03 12:43:40 +01:00
|
|
|
version = "127";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openwebos";
|
|
|
|
repo = "novacomd";
|
|
|
|
rev = "submissions/${version}";
|
|
|
|
sha256 = "1gahc8bvvvs4d6svrsw24iw5r0mhy4a2ars3j2gz6mp6sh42bznl";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-Use-usb_bulk_-read-write-instead-of-homemade-handler.patch?h=palm-novacom-git";
|
|
|
|
sha256 = "116r6p4l767fqxfvq03sy6v7vxja8pkxlrc5hqby351a40b5dkiv";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/feniksa/webos-overlay/40e2c113fc9426d50bdf37779da57ce4ff06ee6e/net-misc/novacomd/files/0011-Remove-verbose-output.patch";
|
|
|
|
sha256 = "09lmv06ziwkfg19b1h3jsmkm6g1f0nxxq1717dircjx8m45ypjq9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config webos.cmake-modules ];
|
2017-10-03 12:43:40 +01:00
|
|
|
|
2020-04-28 04:29:39 +01:00
|
|
|
buildInputs = [ libusb-compat-0_1 ];
|
2017-10-03 12:43:40 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DWEBOS_TARGET_MACHINE_IMPL=host" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-03 12:43:40 +01:00
|
|
|
description = "Daemon for communicating with WebOS devices";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|