8 stdenv.mkDerivation rec {
10 # last tagged release is 3.1 but 3.2 is still considered a release
13 # upstream is quiet as the original author is no longer active since March 2018
14 src = fetchFromGitHub {
15 owner = "npat-efault";
17 rev = "1acf1ddabaf3576b4023c4f6f09c5a3e4b086fb8";
18 sha256 = "sha256-cs2bxqZfTbnY5d+VJ257C5hssaFvYup3tBKz68ROnAo=";
22 substituteInPlace Makefile \
23 --replace '.picocom_history' '.cache/picocom_history'
25 substituteInPlace picocom.c \
26 --replace '"rz -vv"' '"${lrzsz}/bin/rz -vv"' \
27 --replace '"sz -vv"' '"${lrzsz}/bin/sz -vv"'
30 enableParallelBuilding = true;
32 nativeBuildInputs = [ installShellFiles ];
34 buildInputs = lib.optional stdenv.isDarwin IOKit;
37 install -Dm555 -t $out/bin picocom
38 installManPage picocom.1
39 installShellCompletion --bash bash_completion/picocom
43 description = "Minimal dumb-terminal emulation program";
44 homepage = "https://github.com/npat-efault/picocom/";
45 license = licenses.gpl2Plus;
46 platforms = platforms.unix;