nixpkgs/pkgs/by-name/qo/qodem/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

89 lines
2.6 KiB
Nix
Raw Normal View History

2024-07-11 19:12:33 +03:00
{
lib,
stdenv,
fetchFromGitLab,
fetchpatch2,
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-unstable-2022-02-12";
2022-01-11 16:12:20 +03:00
src = fetchFromGitLab {
owner = "AutumnMeowMeow";
2022-01-11 16:12:20 +03:00
repo = "qodem";
rev = "69cc7458ef23243f790348a4cc503a8173008e55";
hash = "sha256-Ocb2inuxeDOfqge+h7pHL9I9Kn72Mgi8Eq179/58alk=";
2022-01-11 16:12:20 +03:00
};
patches = [
# Fix ICH with count>1
# https://gitlab.com/AutumnMeowMeow/qodem/-/issues/77
(fetchpatch2 {
url = "https://gitlab.com/-/project/6684464/uploads/c2ceaef82d483c13ff9ec64424f3c40a/0001-Fix-ICH-with-count-1.patch";
hash = "sha256-lCqj4p8onUS4pehQMXS6lbC7JH5dP6sOjDALpasgd2M=";
})
# Don't clear line rendition on partial ED
# https://gitlab.com/AutumnMeowMeow/qodem/-/issues/78
(fetchpatch2 {
url = "https://gitlab.com/-/project/6684464/uploads/462c0b1cf05c3fc2857ce982e62fefcc/0001-Don-t-clear-line-rendition-on-partial-ED.patch";
hash = "sha256-lSuxP0tUfGa3BjK3ehpdMi16XaGZrdVvAcM2vnjAme8=";
})
# DECCOLM should clear line rendition attributes
# https://gitlab.com/AutumnMeowMeow/qodem/-/issues/78
(fetchpatch2 {
url = "https://gitlab.com/-/project/6684464/uploads/812bdfdfaee44eed346fcff85f53efbe/0002-DECCOLM-should-clear-line-rendition-attributes.patch";
hash = "sha256-XO+h5fpBTLLYC3t4FRCy1uFiMkmSXbre4T2NB/FC3uQ=";
})
# Fix build with miniupnpc 2.2.8
./qodem-fix-miniupnpc-2.2.8.patch
];
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 = {
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.
'';
changelog = "${finalAttrs.src.meta.homepage}-/blob/${finalAttrs.src.rev}/ChangeLog";
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
})