-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #337008 from adamcstephens/ovn/24.03.3
ovn: 24.03.2 -> 24.03.3, drop lts
- Loading branch information
Showing
6 changed files
with
91 additions
and
130 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters