From 11d9682b5770adb4b61964213bcedac61e20fa20 Mon Sep 17 00:00:00 2001 From: linsui Date: Sun, 5 Jun 2022 10:47:12 +0800 Subject: [PATCH] moserial: init at 3.0.21 --- pkgs/tools/misc/moserial/default.nix | 56 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/tools/misc/moserial/default.nix diff --git a/pkgs/tools/misc/moserial/default.nix b/pkgs/tools/misc/moserial/default.nix new file mode 100644 index 000000000000..278182ae5f06 --- /dev/null +++ b/pkgs/tools/misc/moserial/default.nix @@ -0,0 +1,56 @@ +{ lib +, stdenv +, fetchFromGitLab +, autoreconfHook +, intltool +, itstool +, pkg-config +, vala +, glib +, graphviz +, yelp-tools +, gtk3 +, lrzsz +}: + +stdenv.mkDerivation rec { + pname = "moserial"; + version = "3.0.21"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "GNOME"; + repo = pname; + rev = "moserial_${lib.replaceStrings [ "." ] [ "_" ] version}"; + sha256 = "sha256-wfdI51ECqVNcUrIVjYBijf/yqpiwSQeMiKaVJSSma3k="; + }; + + nativeBuildInputs = [ + autoreconfHook + intltool + itstool + pkg-config + vala + ]; + + buildInputs = [ + glib + graphviz + yelp-tools + gtk3 + ]; + + preFixup = '' + gappsWrapperArgs+=( + --prefix PATH : ${lib.makeBinPath [ lrzsz ]} + ) + ''; + + meta = with lib; { + description = "Clean, friendly gtk-based serial terminal for the gnome desktop"; + homepage = "https://wiki.gnome.org/moserial"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ linsui ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51b8eb6f2688..6578e395759a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19654,6 +19654,8 @@ with pkgs; movit = callPackage ../development/libraries/movit { }; + moserial = callPackage ../tools/misc/moserial { }; + mosquitto = callPackage ../servers/mqtt/mosquitto { }; mps = callPackage ../development/libraries/mps { stdenv = gcc10StdenvCompat; };