Unverified Commit 790c3731 authored by Yifei Sun's avatar Yifei Sun Committed by GitHub
Browse files

oxidized: fix ssh support (#425381)

parents 88ae3598 5e6b052f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
BUNDLE_BUILD__RUGGED: --with-ssh
+56 −5
Original line number Diff line number Diff line
@@ -4,6 +4,16 @@
  bundlerApp,
  bundlerUpdateScript,
  nixosTests,
  libssh2,
  pkg-config,
  openssl,
  cmake,
  libgit2,
  icu,
  which,
  file,
  zlib,
  libyaml,
}:

bundlerApp {
@@ -17,17 +27,58 @@ bundlerApp {
    "oxs"
  ];

  gemConfig = {
    rugged = attrs: {
      buildInputs = [
        pkg-config
        cmake
      ];
      nativeBuildInputs = [
        pkg-config
        cmake
      ];
      propagatedBuildInputs = [
        libssh2
        openssl
        libgit2
      ];

      dontUseCmakeConfigure = true;
      buildFlags = [ "--with-ssh" ];
    };

    charlock_holmes = attrs: {
      buildInputs = [
        icu
        zlib
      ];
      nativeBuildInputs = [
        which
        pkg-config
        file
      ];
    };

    psych = attrs: {
      buildInputs = [ libyaml ];
      nativeBuildInputs = [ pkg-config ];
    };
  };

  passthru = {
    tests = nixosTests.oxidized;
    updateScript = bundlerUpdateScript "oxidized";
  };

  meta = with lib; {
  meta = {
    description = "Network device configuration backup tool. It's a RANCID replacement";
    homepage = "https://github.com/ytti/oxidized";
    license = licenses.asl20;
    maintainers = with maintainers; [ nicknovitski ];
    teams = [ teams.wdz ];
    platforms = platforms.linux;
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      nicknovitski
      liberodark
    ];
    teams = with lib.teams; [ wdz ];
    platforms = lib.platforms.linux;
  };
}