mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
26 lines
761 B
Nix
26 lines
761 B
Nix
{ stdenv, fetchFromGitHub, qtbase, qtserialport, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cutecom-${version}";
|
|
version = "0.40.0";
|
|
src = fetchFromGitHub {
|
|
owner = "neundorf";
|
|
repo = "CuteCom";
|
|
rev = "v${version}";
|
|
sha256 = "1bn6vndqlvn73riq6p0nanmcl35ja9gsil5hvfpf509r7i8gx4ds";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace CMakeLists.txt --replace "#find_package(Serialport REQUIRED)" "find_package(Qt5SerialPort REQUIRED)"
|
|
'';
|
|
buildInputs = [qtbase qtserialport cmake];
|
|
|
|
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;
|
|
};
|
|
}
|