1{ stdenv, fetchurl, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 name = "bridge-utils-1.5";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/bridge/${name}.tar.gz";
8 sha256 = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688";
9 };
10
11 # Remove patch once the kernel headers are updated
12 patches = [ ./add-ip6-header.patch ];
13
14 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [ ];
16
17 postInstall = ''
18 # The bridge utils build does not fail even if the brctl binary
19 # is not build. This test ensures that we fail if we don't produce a brctl
20 # binary.
21 test -f $out/sbin/brctl
22 '';
23
24 meta = {
25 description = "http://sourceforge.net/projects/bridge/";
26 homepage = http://www.linux-foundation.org/en/Net:Bridge/;
27 license = "GPL";
28 platforms = stdenv.lib.platforms.linux;
29 };
30}