Skip to content

Commit

Permalink
cvs: new options ___forceSSH and ___withEditor
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua baker <[email protected]>
  • Loading branch information
AndersonTorres and joshuakb2 committed Oct 21, 2024
1 parent b95fdfa commit 13622f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/by-name/cv/cvs/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
fetchpatch2,
fetchurl,
nano,
openssh,
stdenv,
# Boolean flags
___forceSSH ? true, # Sets SSH (openssh) as the remote shell
___withEditor ? true, # Sets the default editor (nano)
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -46,8 +50,8 @@ stdenv.mkDerivation (finalAttrs: {
];

configureFlags = [
"--with-editor=${nano}/bin/nano"

(lib.withFeatureAs ___forceSSH "rsh" (lib.getExe openssh))
(lib.withFeatureAs ___withEditor "editor" (lib.getExe nano))
# Required for cross-compilation.
"cvs_cv_func_printf_ptr=yes"
];
Expand Down

0 comments on commit 13622f7

Please sign in to comment.