Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 testers, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "bootterm"; 10 version = "0.5"; 11 12 src = fetchFromGitHub { 13 owner = "wtarreau"; 14 repo = "bootterm"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-AYpO2Xcd51B2qVUWoyI190BV0pIdA3HfuQJPzJ4yT/U="; 17 }; 18 19 makeFlags = [ "PREFIX=$(out)" ]; 20 21 passthru.tests = { 22 version = testers.testVersion { 23 package = finalAttrs.finalPackage; 24 command = "${finalAttrs.meta.mainProgram} -V"; 25 }; 26 }; 27 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 }; 41})