1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/tools/misc/cutecom/default.nix
2019-10-26 00:59:56 +02:00

30 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;
};
}