rc: add readline and editline variants to passthru.tests

This commit is contained in:
Peder Bergebakken Sundt
2026-07-21 06:00:00 -04:00
committed by Dmitry Bogatov
parent c57117faef
commit 56b204e3c4
+16 -1
View File
@@ -4,6 +4,7 @@
fetchFromGitHub,
fetchpatch2,
pkgsStatic,
rc,
byacc,
ed,
ncurses,
@@ -88,7 +89,21 @@ stdenv.mkDerivation (finalAttrs: {
passthru = {
shellPath = "/bin/rc";
tests.static = pkgsStatic.rc;
tests = {
static = pkgsStatic.rc;
readline = lib.optionalDrvAttr (!stdenv.hostPlatform.isDarwin) (
rc.override {
readlineSupport = true;
lineEditingLibrary = "readline";
}
);
editline = lib.optionalDrvAttr (!stdenv.hostPlatform.isDarwin) (
rc.override {
editlineSupport = true;
lineEditingLibrary = "editline";
}
);
};
};
meta = {