depot/third_party/nixpkgs/pkgs/development/mobile/webos/novacom.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

27 lines
748 B
Nix

{ lib, stdenv, fetchFromGitHub, webos, cmake, pkg-config }:
stdenv.mkDerivation rec {
pname = "novacom";
version = "18";
src = fetchFromGitHub {
owner = "openwebos";
repo = "novacom";
rev = "submissions/${version}";
sha256 = "12s6g7l20kakyjlhqpli496miv2kfsdp17lcwhdrzdxvxl6hnf4n";
};
nativeBuildInputs = [ cmake pkg-config webos.cmake-modules ];
postInstall = ''
install -Dm755 -t $out/bin ../scripts/novaterm
substituteInPlace $out/bin/novaterm --replace "exec novacom" "exec $out/bin/novacom"
'';
meta = with lib; {
description = "Utility for communicating with WebOS devices";
license = licenses.asl20;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.linux;
};
}