git.iko.soy/typeable/nixpkgs
on master help sign in
openvswitch: 2.3.1 -> 2.5.0 (#15729)
commit4561a649f41554f9c47c0405079a909a1b51db2f authorMarius Bakke <mbakke@users.noreply.github.com> dateSat 28 May 2016, 15:02 (11 years ago) parent5c6d782
1 file changed+16−5
pkgs/os-specific/linux/openvswitch/default.nix+16−5
pkgs/os-specific/linux/openvswitch/default.nix+16−5
@@ -1,22 +1,24 @@
1−{ stdenv, fetchurl, makeWrapper
2−, openssl, python27, iproute, perl, kernel ? null }:
1+{ stdenv, fetchurl, makeWrapper, pkgconfig, utillinux, which
2+, procps, libcap_ng, openssl, python27, iproute , perl
3+, kernel ? null }:
34
45with stdenv.lib;
56
67let
78 _kernel = kernel;
89in stdenv.mkDerivation rec {
9− version = "2.3.1";
10+ version = "2.5.0";
1011 name = "openvswitch-${version}";
1112
1213 src = fetchurl {
1314 url = "http://openvswitch.org/releases/${name}.tar.gz";
14− sha256 = "1lmwyhm5wmdv1l4v1v5xd36d5ra21jz9ix57nh1lgm8iqc0lj5r1";
15+ sha256 = "08bgsqjjn2q5hvxsjqs7n3jir7k7291wlj3blsqhacjhmpxm9nil";
1516 };
1617
1718 kernel = optional (_kernel != null) _kernel.dev;
1819
19− buildInputs = [ makeWrapper openssl python27 perl ];
20+ buildInputs = [ makeWrapper pkgconfig utillinux openssl libcap_ng python27
21+ perl procps which ];
2022
2123 configureFlags = [
2224 "--localstatedir=/var"
@@ -31,6 +33,15 @@ in stdenv.mkDerivation rec {
3133 "PKIDIR=$(TMPDIR)/dummy"
3234 ];
3335
36+ postBuild = ''
37+ # fix tests
38+ substituteInPlace xenserver/opt_xensource_libexec_interface-reconfigure --replace '/usr/bin/env python' '${python27.interpreter}'
39+ substituteInPlace vtep/ovs-vtep --replace '/usr/bin/env python' '${python27.interpreter}'
40+ '';
41+
42+ enableParallelBuilding = true;
43+ doCheck = false; # bash-completion test fails with "compgen: command not found"
44+
3445 postInstall = ''
3546 cp debian/ovs-monitor-ipsec $out/share/openvswitch/scripts
3647 makeWrapper \