Skip to content

Commit eaaddd4

Browse files
cvs: new options ___forceSSH and ___withEditor
Co-authored-by: Joshua baker <joshuakb2@gmail.com>
1 parent b15f303 commit eaaddd4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

pkgs/by-name/cv/cvs/package.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
fetchpatch2,
44
fetchurl,
55
nano,
6+
openssh,
67
stdenv,
8+
# Boolean flags
9+
___forceSSH ? true, # Sets SSH (openssh) as the remote shell
10+
___withEditor ? true, # Sets the default editor (nano)
711
}:
812

913
stdenv.mkDerivation (finalAttrs: {
@@ -46,8 +50,8 @@ stdenv.mkDerivation (finalAttrs: {
4650
];
4751

4852
configureFlags = [
49-
"--with-editor=${nano}/bin/nano"
50-
53+
(lib.withFeatureAs ___forceSSH "rsh" (lib.getExe openssh))
54+
(lib.withFeatureAs ___withEditor "editor" (lib.getExe nano))
5155
# Required for cross-compilation.
5256
"cvs_cv_func_printf_ptr=yes"
5357
];

0 commit comments

Comments
 (0)