about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/bridge-utils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/bridge-utils/default.nix')
-rw-r--r--nixpkgs/pkgs/os-specific/linux/bridge-utils/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/bridge-utils/default.nix b/nixpkgs/pkgs/os-specific/linux/bridge-utils/default.nix
new file mode 100644
index 000000000000..2725a5909b7b
--- /dev/null
+++ b/nixpkgs/pkgs/os-specific/linux/bridge-utils/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  name = "bridge-utils-1.5";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/bridge/${name}.tar.gz";
+    sha256 = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688";
+  };
+
+  # Remove patch once the kernel headers are updated
+  patches = [ ./add-ip6-header.patch ];
+
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ ];
+
+  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
+  '';
+
+  meta = {
+    description = "https://sourceforge.net/projects/bridge/";
+    homepage = https://wiki.linuxfoundation.org/networking/bridge;
+    license = stdenv.lib.licenses.gpl2Plus;
+    platforms = stdenv.lib.platforms.linux;
+  };
+}