diff --git a/pkgs/by-name/ox/oxidized/.bundle/config b/pkgs/by-name/ox/oxidized/.bundle/config deleted file mode 100644 index ccff7eafdc14..000000000000 --- a/pkgs/by-name/ox/oxidized/.bundle/config +++ /dev/null @@ -1 +0,0 @@ -BUNDLE_BUILD__RUGGED: --with-ssh diff --git a/pkgs/by-name/ox/oxidized/package.nix b/pkgs/by-name/ox/oxidized/package.nix index 9dbfd3502fa9..046add730c65 100644 --- a/pkgs/by-name/ox/oxidized/package.nix +++ b/pkgs/by-name/ox/oxidized/package.nix @@ -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; }; }