From d90f320eb26dd0f744e060b594175b7ff5479cc5 Mon Sep 17 00:00:00 2001 From: Philippe Loctaux Date: Fri, 1 Nov 2024 11:43:34 +0100 Subject: [PATCH] bootterm: init at 0.5 --- pkgs/by-name/bo/bootterm/package.nix | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/bo/bootterm/package.nix diff --git a/pkgs/by-name/bo/bootterm/package.nix b/pkgs/by-name/bo/bootterm/package.nix new file mode 100644 index 0000000000000..d5eab948805ec --- /dev/null +++ b/pkgs/by-name/bo/bootterm/package.nix @@ -0,0 +1,41 @@ +{ + lib, + stdenv, + fetchFromGitHub, + testers, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "bootterm"; + version = "0.5"; + + src = fetchFromGitHub { + owner = "wtarreau"; + repo = "bootterm"; + rev = "v${finalAttrs.version}"; + hash = "sha256-AYpO2Xcd51B2qVUWoyI190BV0pIdA3HfuQJPzJ4yT/U="; + }; + + makeFlags = [ "PREFIX=$(out)" ]; + + passthru.tests = { + version = testers.testVersion { + package = finalAttrs.finalPackage; + command = "${finalAttrs.meta.mainProgram} -V"; + }; + }; + + meta = { + description = "Simple, reliable and powerful terminal to ease connection to serial ports"; + longDescription = '' + BootTerm is a simple, reliable and powerful terminal designed to + ease connection to ephemeral serial ports as found on various SBCs, + and typically USB-based ones. + ''; + homepage = "https://github.com/wtarreau/bootterm"; + license = lib.licenses.mit; + mainProgram = "bt"; + maintainers = with lib.maintainers; [ deadbaed ]; + platforms = lib.platforms.unix; + }; +})