2024-07-11 19:12:33 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
2024-07-11 19:12:45 +03:00
|
|
|
autoreconfHook,
|
2024-07-11 19:12:33 +03:00
|
|
|
ncurses,
|
|
|
|
SDL,
|
|
|
|
gpm,
|
|
|
|
miniupnpc,
|
|
|
|
}:
|
2022-01-11 16:12:20 +03:00
|
|
|
|
2024-07-11 19:12:45 +03:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-01-11 16:12:20 +03:00
|
|
|
pname = "qodem";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klamonte";
|
|
|
|
repo = "qodem";
|
2024-07-11 19:12:45 +03:00
|
|
|
rev = "v${finalAttrs.version}";
|
2022-01-11 16:12:20 +03:00
|
|
|
sha256 = "NAdcTVmNrDa3rbsbxJxFoI7sz5NK5Uw+TbP+a1CdB+Q=";
|
|
|
|
};
|
|
|
|
|
2024-07-11 19:12:33 +03:00
|
|
|
nativeBuildInputs = [
|
2024-07-11 19:12:45 +03:00
|
|
|
autoreconfHook
|
2024-07-11 19:12:33 +03:00
|
|
|
];
|
2024-07-11 19:12:45 +03:00
|
|
|
|
2024-07-11 19:12:33 +03:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
SDL
|
|
|
|
miniupnpc
|
2024-07-11 19:12:45 +03:00
|
|
|
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform gpm) [
|
|
|
|
gpm
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = lib.optionals (!(lib.meta.availableOn stdenv.hostPlatform gpm)) [
|
|
|
|
"--disable-gpm"
|
2024-07-11 19:12:33 +03:00
|
|
|
];
|
2022-01-11 16:12:20 +03:00
|
|
|
|
2024-07-11 19:12:45 +03:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
__structuredAttrs = true;
|
|
|
|
|
|
|
|
meta = {
|
2023-01-22 00:41:12 +03:00
|
|
|
homepage = "https://qodem.sourceforge.net/";
|
2022-01-11 16:12:20 +03:00
|
|
|
description = "Re-implementation of the DOS-era Qmodem serial communications package";
|
|
|
|
longDescription = ''
|
|
|
|
Qodem is a from-scratch clone implementation of the Qmodem
|
|
|
|
communications program made popular in the days when Bulletin Board
|
|
|
|
Systems ruled the night. Qodem emulates the dialing directory and the
|
|
|
|
terminal screen features of Qmodem over both modem and Internet
|
|
|
|
connections.
|
|
|
|
'';
|
2024-07-11 19:12:45 +03:00
|
|
|
maintainers = with lib.maintainers; [ embr ];
|
|
|
|
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
|
|
|
license = lib.licenses.publicDomain;
|
2024-07-11 19:12:45 +03:00
|
|
|
platforms = lib.platforms.unix;
|
2022-01-11 16:12:20 +03:00
|
|
|
};
|
2024-07-11 19:12:45 +03:00
|
|
|
})
|