Files
nixpkgs/pkgs/by-name/mi/minicom/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
makeWrapper,
pkg-config,
lrzsz,
ncurses,
libiconv,
}:
stdenv.mkDerivation rec {
pname = "minicom";
version = "2.10";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "minicom-team";
repo = "minicom";
rev = version;
sha256 = "sha256-wC6VlMRwuhV1zQ26wNx7gijuze8E2CvnzpqOSIPzq2s=";
};
buildInputs = [
ncurses
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
nativeBuildInputs = [
autoreconfHook
makeWrapper
pkg-config
];
enableParallelBuilding = true;
configureFlags = [
"--sysconfdir=/etc"
"--enable-lock-dir=/var/lock"
];
patches = [ ./xminicom_terminal_paths.patch ];
preConfigure = ''
# Have `configure' assume that the lock directory exists.
substituteInPlace configure \
--replace 'test -d $UUCPLOCK' true
'';
postInstall = ''
for f in $out/bin/*minicom ; do
wrapProgram $f \
--prefix PATH : ${lib.makeBinPath [ lrzsz ]}:$out/bin
done
'';
meta = with lib; {
description = "Modem control and terminal emulation program";
homepage = "https://salsa.debian.org/minicom-team/minicom";
license = licenses.gpl2Plus;
longDescription = ''
Minicom is a menu driven communications program. It emulates ANSI
and VT102 terminals. It has a dialing directory and auto zmodem
download.
'';
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}