1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 webos,
6 cmake,
7 pkg-config,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "novacom";
12 version = "18";
13
14 src = fetchFromGitHub {
15 owner = "openwebos";
16 repo = "novacom";
17 rev = "submissions/${version}";
18 sha256 = "12s6g7l20kakyjlhqpli496miv2kfsdp17lcwhdrzdxvxl6hnf4n";
19 };
20
21 nativeBuildInputs = [
22 cmake
23 pkg-config
24 webos.cmake-modules
25 ];
26
27 postInstall = ''
28 install -Dm755 -t $out/bin ../scripts/novaterm
29 substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
30 '';
31
32 meta = with lib; {
33 description = "Utility for communicating with WebOS devices";
34 license = licenses.asl20;
35 maintainers = [ ];
36 platforms = platforms.linux;
37 };
38}