nixpkgs/pkgs/tools/misc/cutecom/default.nix

26 lines
761 B
Nix
Raw Normal View History

2017-07-11 20:18:09 +00:00
{ stdenv, fetchFromGitHub, qtbase, qtserialport, cmake }:
2015-02-19 12:34:01 +00:00
stdenv.mkDerivation rec {
2017-07-11 20:18:09 +00:00
name = "cutecom-${version}";
version = "0.40.0";
src = fetchFromGitHub {
owner = "neundorf";
repo = "CuteCom";
rev = "v${version}";
sha256 = "1bn6vndqlvn73riq6p0nanmcl35ja9gsil5hvfpf509r7i8gx4ds";
2015-02-19 12:34:01 +00:00
};
2017-07-11 20:18:09 +00:00
preConfigure = ''
substituteInPlace CMakeLists.txt --replace "#find_package(Serialport REQUIRED)" "find_package(Qt5SerialPort REQUIRED)"
'';
buildInputs = [qtbase qtserialport cmake];
2015-02-19 12:34:01 +00:00
meta = {
description = "A graphical serial terminal";
homepage = http://cutecom.sourceforge.net/;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.bennofs ];
platforms = stdenv.lib.platforms.unix;
2015-02-19 12:34:01 +00:00
};
}