picocom: switch to maintained fork

The previous upstream has been dead for six years; this fork is by
Linux kernel developer Wolfram Sang, and is already used by Fedora,
openSUSE, and Buildroot.

Emily 5f0e2e9e dfa36a3e

+49 -25
+15
pkgs/by-name/pi/picocom/lrzsz-path.patch
···
··· 1 + diff --git a/picocom.c b/picocom.c 2 + index ba2f9bd666..d4df60f2d3 100644 3 + --- a/picocom.c 4 + +++ b/picocom.c 5 + @@ -243,8 +243,8 @@ 6 + .send_cmd = "", 7 + .receive_cmd = "", 8 + #else 9 + - .send_cmd = "sz -vv", 10 + - .receive_cmd = "rz -vv -E", 11 + + .send_cmd = "@lrzsz@/bin/sz -vv", 12 + + .receive_cmd = "@lrzsz@/bin/rz -vv -E", 13 + #endif 14 + .imap = M_I_DFL, 15 + .omap = M_O_DFL,
+34 -25
pkgs/by-name/pi/picocom/package.nix
··· 1 { 2 lib, 3 stdenv, 4 - fetchFromGitHub, 5 installShellFiles, 6 - lrzsz, 7 darwin, 8 }: 9 10 - stdenv.mkDerivation rec { 11 pname = "picocom"; 12 - # last tagged release is 3.1 but 3.2 is still considered a release 13 - version = "3.2a"; 14 15 - # upstream is quiet as the original author is no longer active since March 2018 16 - src = fetchFromGitHub { 17 - owner = "npat-efault"; 18 repo = "picocom"; 19 - rev = "1acf1ddabaf3576b4023c4f6f09c5a3e4b086fb8"; 20 - sha256 = "sha256-cs2bxqZfTbnY5d+VJ257C5hssaFvYup3tBKz68ROnAo="; 21 }; 22 23 - postPatch = '' 24 - substituteInPlace Makefile \ 25 - --replace '.picocom_history' '.cache/picocom_history' 26 27 - substituteInPlace picocom.c \ 28 - --replace '"rz -vv -E"' '"${lrzsz}/bin/rz -vv -E"' \ 29 - --replace '"sz -vv"' '"${lrzsz}/bin/sz -vv"' 30 - ''; 31 32 - enableParallelBuilding = true; 33 34 - nativeBuildInputs = [ installShellFiles ]; 35 36 - buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ]; 37 38 installPhase = '' 39 install -Dm555 -t $out/bin picocom 40 installManPage picocom.1 41 installShellCompletion --bash bash_completion/picocom 42 ''; 43 44 - meta = with lib; { 45 description = "Minimal dumb-terminal emulation program"; 46 - homepage = "https://github.com/npat-efault/picocom/"; 47 - license = licenses.gpl2Plus; 48 - platforms = platforms.unix; 49 mainProgram = "picocom"; 50 }; 51 - }
··· 1 { 2 lib, 3 stdenv, 4 + fetchFromGitLab, 5 + replaceVars, 6 + go-md2man, 7 installShellFiles, 8 darwin, 9 + lrzsz, 10 }: 11 12 + stdenv.mkDerivation (finalAttrs: { 13 pname = "picocom"; 14 + version = "2024-07"; 15 16 + src = fetchFromGitLab { 17 + owner = "wsakernel"; 18 repo = "picocom"; 19 + rev = finalAttrs.version; 20 + hash = "sha256-cQoEfi75iltjeAm26NvXgfrL7d1Hm+1veQ4dVe0S1q8="; 21 }; 22 23 + patches = [ 24 + (replaceVars ./lrzsz-path.patch { inherit lrzsz; }) 25 + ]; 26 27 + nativeBuildInputs = [ 28 + go-md2man 29 + installShellFiles 30 + ]; 31 32 + buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ]; 33 34 + makeFlags = [ 35 + "HISTFILE=.cache/picocom_history" 36 + "all" 37 + "doc" 38 + ]; 39 40 + enableParallelBuilding = true; 41 42 installPhase = '' 43 + runHook preInstall 44 + 45 install -Dm555 -t $out/bin picocom 46 installManPage picocom.1 47 installShellCompletion --bash bash_completion/picocom 48 + 49 + runHook postInstall 50 ''; 51 52 + meta = { 53 description = "Minimal dumb-terminal emulation program"; 54 + homepage = "https://gitlab.com/wsakernel/picocom"; 55 + changelog = "https://gitlab.com/wsakernel/picocom/-/releases"; 56 + license = lib.licenses.gpl2Plus; 57 + platforms = lib.platforms.unix; 58 mainProgram = "picocom"; 59 }; 60 + })