From b5572e1c5df5f2df51b5e8c75fcaf542b779c88f 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 | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 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..46b0bc6bc44c3 --- /dev/null +++ b/pkgs/by-name/bo/bootterm/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, testVersion +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "bootterm"; + version = "0.5"; + + src = fetchFromGitHub { + owner = "wtarreau"; + repo = finalAttrs.pname; + rev = "v${finalAttrs.version}"; + hash = "sha256-AYpO2Xcd51B2qVUWoyI190BV0pIdA3HfuQJPzJ4yT/U="; + }; + + makeFlags = [ "PREFIX=$(out)" ]; + + passthru.tests = { + version = testVersion { + package = finalAttrs.finalPackage; + command = "${finalAttrs.meta.mainProgram} -V"; + version = finalAttrs.version; + }; + }; + + meta = with lib; { + 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 = licenses.mit; + mainProgram = "bt"; + platforms = platforms.all; + }; +})