mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-15 00:45:06 +01:00
kex works
This commit is contained in:
parent
e4363a61d2
commit
660fa8e10e
4 changed files with 80 additions and 20 deletions
19
test-openssh/default.nix
Normal file
19
test-openssh/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ pkgs ? import <nixpkgs> { }, ... }:
|
||||
let
|
||||
optimizeWithFlags = pkg: flags:
|
||||
pkgs.lib.overrideDerivation pkg (old:
|
||||
let
|
||||
newflags = pkgs.lib.foldl' (acc: x: "${acc} ${x}") "" flags;
|
||||
oldflags =
|
||||
if (pkgs.lib.hasAttr "NIX_CFLAGS_COMPILE" old)
|
||||
then "${old.NIX_CFLAGS_COMPILE}"
|
||||
else "";
|
||||
in
|
||||
{
|
||||
CFLAGS = "-DDEBUG_KEXDH -DDEBUG_KEX -DDEBUG_KEXECDH";
|
||||
NIX_CFLAGS_COMPILE = "${oldflags} ${newflags}";
|
||||
checkPhase = "";
|
||||
doCheck = false;
|
||||
});
|
||||
in
|
||||
optimizeWithFlags pkgs.openssh [ "-DDEBUG_KEXDH" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue