Unverified Commit 14f2f67d authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

openbao: fix interactive cli missing stty (#494109)

parents 4f63959d c26db9ab
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  fetchpatch2,
  buildGoModule,
  installShellFiles,
  versionCheckHook,
@@ -23,7 +24,7 @@ buildGoModule (finalAttrs: {
    hash = "sha256-pVFsyNg9ccSFAdHb/fjeVoMBh1nKcjwcFfVBBqFalIo=";
  };

  vendorHash = "sha256-lfabvwO+p54SREvpCZdw5z/QMLDZqaf1UZTXWGm6sdg=";
  vendorHash = "sha256-8F8HCbpk8st1o/64Y442lzzFXBnCs+mEYREYcj/s5KI=";

  proxyVendor = true;

@@ -38,6 +39,15 @@ buildGoModule (finalAttrs: {
    "-X github.com/openbao/openbao/version.buildDate=1970-01-01T00:00:00Z"
  ];

  patches = [
    # Fixes interactive CLI usage that needs stty https://github.com/openbao/openbao/pull/2535
    (fetchpatch2 {
      name = "pr2535-fix-interactive-cli.patch";
      url = "https://github.com/openbao/openbao/commit/e3fec111e3f6fd543c79c08f46d2256cd93f78e7.patch";
      hash = "sha256-Q/hmJj+JbpWjDhXp+p2qjlAMSUVP279Ca7ihh/9khOQ=";
    })
  ];

  postConfigure = lib.optionalString withUi ''
    cp -r --no-preserve=mode ${finalAttrs.passthru.ui} http/web_ui
  '';