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