2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, webos, cmake, pkg-config }:
|
2017-10-03 12:43:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "novacom";
|
2017-10-03 12:43:40 +01:00
|
|
|
version = "18";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openwebos";
|
|
|
|
repo = "novacom";
|
|
|
|
rev = "submissions/${version}";
|
|
|
|
sha256 = "12s6g7l20kakyjlhqpli496miv2kfsdp17lcwhdrzdxvxl6hnf4n";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config webos.cmake-modules ];
|
2017-10-03 12:43:40 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm755 -t $out/bin ../scripts/novaterm
|
|
|
|
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-03 12:43:40 +01:00
|
|
|
description = "Utility for communicating with WebOS devices";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|