2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, webos, cmake, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "novacom";
|
|
|
|
version = "18";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openwebos";
|
|
|
|
repo = "novacom";
|
|
|
|
rev = "submissions/${version}";
|
|
|
|
sha256 = "12s6g7l20kakyjlhqpli496miv2kfsdp17lcwhdrzdxvxl6hnf4n";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config webos.cmake-modules ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm755 -t $out/bin ../scripts/novaterm
|
|
|
|
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utility for communicating with WebOS devices";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|