Skip to content

Commit

Permalink
Merge pull request #337008 from adamcstephens/ovn/24.03.3
Browse files Browse the repository at this point in the history
ovn: 24.03.2 -> 24.03.3, drop lts
  • Loading branch information
adamcstephens authored Aug 24, 2024
2 parents 0692cca + 88328a2 commit cbdb6ac
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 130 deletions.
101 changes: 0 additions & 101 deletions pkgs/by-name/ov/ovn/generic.nix

This file was deleted.

5 changes: 0 additions & 5 deletions pkgs/by-name/ov/ovn/lts.nix

This file was deleted.

93 changes: 90 additions & 3 deletions pkgs/by-name/ov/ovn/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,91 @@
import ./generic.nix {
version = "24.03.2";
hash = "sha256-pO37MfmvlSd/bU9cGngFEJLnXtZFTqyz1zcYLvFLrrQ=";
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
gnused,
libbpf,
libcap_ng,
nix-update-script,
numactl,
openssl,
pkg-config,
procps,
python3,
unbound,
xdp-tools,
}:

stdenv.mkDerivation rec {
pname = "ovn";
version = "24.03.3";

src = fetchFromGitHub {
owner = "ovn-org";
repo = "ovn";
rev = "refs/tags/v${version}";
hash = "sha256-W25Tq5Z7SYIBkq6doNz9WPiPsdDhnbys03rmF4m02eM=";
fetchSubmodules = true;
};

nativeBuildInputs = [
autoreconfHook
pkg-config
python3
];

buildInputs = [
libbpf
libcap_ng
numactl
openssl
unbound
xdp-tools
];

# need to build the ovs submodule first
preConfigure = ''
pushd ovs
./boot.sh
./configure
make -j $NIX_BUILD_CORES
popd
'';

configureFlags = [ "--localstatedir=/var" ];

enableParallelBuilding = true;

# disable tests due to networking issues and because individual tests can't be skipped easily
doCheck = false;

nativeCheckInputs = [
gnused
procps
];

# https://docs.ovn.org/en/latest/topics/testing.html
preCheck = ''
export TESTSUITEFLAGS="-j$NIX_BUILD_CORES"
# allow rechecks to retry flaky tests
export RECHECK=yes
# hack to stop tests from trying to read /etc/resolv.conf
export OVS_RESOLV_CONF="$PWD/resolv.conf"
touch $OVS_RESOLV_CONF
'';

passthru.updateScript = nix-update-script { };

meta = with lib; {
description = "Open Virtual Network";
longDescription = ''
OVN (Open Virtual Network) is a series of daemons that translates virtual network configuration into OpenFlow, and installs them into Open vSwitch.
'';
homepage = "https://github.com/ovn-org/ovn";
changelog = "https://github.com/ovn-org/ovn/blob/${src.rev}/NEWS";
license = licenses.asl20;
maintainers = with maintainers; [ adamcstephens ];
platforms = platforms.linux;
};
}
19 changes: 0 additions & 19 deletions pkgs/by-name/ov/ovn/update.nu

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ mapAliases ({
onlyoffice-bin_7_5 = throw "onlyoffice-bin_7_5 has been removed. Please use the latest version available under onlyoffice-bin"; # Added 2024-07-03
oroborus = throw "oroborus was removed, because it was abandoned years ago."; #Added 2023-09-10
osxfuse = macfuse-stubs; # Added 2021-03-20
ovn-lts = throw "ovn-lts has been removed. Please use the latest version available under ovn"; # Added 2024-08-24
oxen = throw "'oxen' has been removed, because it was broken, outdated and unmaintained"; # Added 2023-12-09

### P ###
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11113,8 +11113,6 @@ with pkgs;
openvswitch-lts = callPackage ../by-name/op/openvswitch/lts.nix { };
openvswitch-dpdk = callPackage ../by-name/op/openvswitch/package.nix { withDPDK = true; };

ovn-lts = callPackage ../by-name/ov/ovn/lts.nix { };

optifinePackages = callPackage ../tools/games/minecraft/optifine { };

optifine = optifinePackages.optifine-latest;
Expand Down

0 comments on commit cbdb6ac

Please sign in to comment.