2014-11-15 22:17:56 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2014-11-15 22:17:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-12-01 11:26:49 +00:00
|
|
|
name = "bridge-utils-1.5";
|
2007-11-18 10:37:32 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2010-09-14 11:54:50 +01:00
|
|
|
url = "mirror://sourceforge/bridge/${name}.tar.gz";
|
2011-12-01 11:26:49 +00:00
|
|
|
sha256 = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688";
|
2007-11-18 10:37:32 +00:00
|
|
|
};
|
|
|
|
|
2014-11-15 22:17:56 +00:00
|
|
|
# Remove patch once the kernel headers are updated
|
|
|
|
patches = [ ./add-ip6-header.patch ];
|
2007-11-18 10:37:32 +00:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
2007-11-18 10:37:32 +00:00
|
|
|
|
2014-11-15 21:22:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
# The bridge utils build does not fail even if the brctl binary
|
|
|
|
# is not build. This test ensures that we fail if we don't produce a brctl
|
|
|
|
# binary.
|
|
|
|
test -f $out/sbin/brctl
|
|
|
|
'';
|
|
|
|
|
2011-12-01 11:26:49 +00:00
|
|
|
meta = {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "http://sourceforge.net/projects/bridge/";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.linux-foundation.org/en/Net:Bridge/;
|
2010-07-28 12:55:54 +01:00
|
|
|
license = "GPL";
|
2011-09-09 10:55:49 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2007-11-18 10:37:32 +00:00
|
|
|
};
|
|
|
|
}
|