depot/third_party/nixpkgs/pkgs/tools/misc/cutecom/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
779 B
Nix

{ mkDerivation, lib, fetchFromGitLab, qtbase, qtserialport, cmake }:
mkDerivation rec {
pname = "cutecom";
version = "0.51.0";
src = fetchFromGitLab {
owner = "cutecom";
repo = "cutecom";
rev = "v${version}";
sha256 = "1zprabjs4z26hsb64fc3k790aiiqiz9d88j666xrzi4983m1bfv8";
};
preConfigure = ''
substituteInPlace CMakeLists.txt \
--replace "#find_package(Serialport REQUIRED)" "find_package(Qt5SerialPort REQUIRED)"
'';
buildInputs = [ qtbase qtserialport ];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "A graphical serial terminal";
homepage = "https://gitlab.com/cutecom/cutecom/";
license = licenses.gpl3;
maintainers = with maintainers; [ bennofs ];
platforms = platforms.linux;
};
}