diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/misc/cutecom/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/tools/misc/cutecom/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/misc/cutecom/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/misc/cutecom/default.nix new file mode 100644 index 000000000000..d825b555e195 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/tools/misc/cutecom/default.nix @@ -0,0 +1,29 @@ +{ 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; + }; +} |