From 2435d4b9613ee8b1b6bd07693a19394a83702f06 Mon Sep 17 00:00:00 2001 From: geistesk Date: Sat, 19 Oct 2019 15:34:57 +0200 Subject: [PATCH] cutecom: 0.50.0 -> 0.51.0 --- pkgs/tools/misc/cutecom/default.nix | 32 ++++++++++++++++------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/misc/cutecom/default.nix b/pkgs/tools/misc/cutecom/default.nix index 83010477c50d..d825b555e195 100644 --- a/pkgs/tools/misc/cutecom/default.nix +++ b/pkgs/tools/misc/cutecom/default.nix @@ -1,25 +1,29 @@ -{ stdenv, fetchFromGitHub, qtbase, qtserialport, cmake }: +{ mkDerivation, lib, fetchFromGitLab, qtbase, qtserialport, cmake }: -stdenv.mkDerivation rec { +mkDerivation rec { pname = "cutecom"; - version = "0.50.0"; - src = fetchFromGitHub { - owner = "neundorf"; - repo = "CuteCom"; + version = "0.51.0"; + + src = fetchFromGitLab { + owner = "cutecom"; + repo = "cutecom"; rev = "v${version}"; - sha256 = "0zjmbjrwwan9z5cphqjcq2h71cm4mw88j457lzdqb29cg4bdn3ag"; + sha256 = "1zprabjs4z26hsb64fc3k790aiiqiz9d88j666xrzi4983m1bfv8"; }; preConfigure = '' - substituteInPlace CMakeLists.txt --replace "#find_package(Serialport REQUIRED)" "find_package(Qt5SerialPort REQUIRED)" + substituteInPlace CMakeLists.txt \ + --replace "#find_package(Serialport REQUIRED)" "find_package(Qt5SerialPort REQUIRED)" ''; - buildInputs = [qtbase qtserialport cmake]; - meta = { + buildInputs = [ qtbase qtserialport ]; + nativeBuildInputs = [ cmake ]; + + meta = with lib; { description = "A graphical serial terminal"; - homepage = http://cutecom.sourceforge.net/; - license = stdenv.lib.licenses.gpl2Plus; - maintainers = [ stdenv.lib.maintainers.bennofs ]; - platforms = stdenv.lib.platforms.linux; + homepage = "https://gitlab.com/cutecom/cutecom/"; + license = licenses.gpl3; + maintainers = with maintainers; [ bennofs ]; + platforms = platforms.linux; }; }