btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / bo / bootterm / package.nix
blobd5eab948805ec7e83fac7cfb9886afacecd98e58
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   testers,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "bootterm";
10   version = "0.5";
12   src = fetchFromGitHub {
13     owner = "wtarreau";
14     repo = "bootterm";
15     rev = "v${finalAttrs.version}";
16     hash = "sha256-AYpO2Xcd51B2qVUWoyI190BV0pIdA3HfuQJPzJ4yT/U=";
17   };
19   makeFlags = [ "PREFIX=$(out)" ];
21   passthru.tests = {
22     version = testers.testVersion {
23       package = finalAttrs.finalPackage;
24       command = "${finalAttrs.meta.mainProgram} -V";
25     };
26   };
28   meta = {
29     description = "Simple, reliable and powerful terminal to ease connection to serial ports";
30     longDescription = ''
31       BootTerm is a simple, reliable and powerful terminal designed to
32       ease connection to ephemeral serial ports as found on various SBCs,
33       and typically USB-based ones.
34     '';
35     homepage = "https://github.com/wtarreau/bootterm";
36     license = lib.licenses.mit;
37     mainProgram = "bt";
38     maintainers = with lib.maintainers; [ deadbaed ];
39     platforms = lib.platforms.unix;
40   };