2019-10-19 14:34:57 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitLab, qtbase, qtserialport, cmake }:
|
2015-02-19 12:34:01 +00:00
|
|
|
|
2019-10-19 14:34:57 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cutecom";
|
2019-10-19 14:34:57 +01:00
|
|
|
version = "0.51.0";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "cutecom";
|
|
|
|
repo = "cutecom";
|
2017-07-11 21:18:09 +01:00
|
|
|
rev = "v${version}";
|
2019-10-19 14:34:57 +01:00
|
|
|
sha256 = "1zprabjs4z26hsb64fc3k790aiiqiz9d88j666xrzi4983m1bfv8";
|
2015-02-19 12:34:01 +00:00
|
|
|
};
|
2017-07-11 21:18:09 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2019-10-19 14:34:57 +01:00
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace "#find_package(Serialport REQUIRED)" "find_package(Qt5SerialPort REQUIRED)"
|
2017-07-11 21:18:09 +01:00
|
|
|
'';
|
2015-02-19 12:34:01 +00:00
|
|
|
|
2019-10-19 14:34:57 +01:00
|
|
|
buildInputs = [ qtbase qtserialport ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2015-02-19 12:34:01 +00:00
|
|
|
description = "A graphical serial terminal";
|
2019-10-19 14:34:57 +01:00
|
|
|
homepage = "https://gitlab.com/cutecom/cutecom/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
platforms = platforms.linux;
|
2015-02-19 12:34:01 +00:00
|
|
|
};
|
|
|
|
}
|