From 2f09407a913ef7b4f7bd3b1c64e17f4d5de75ade Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 19 Jun 2016 20:44:23 +0200 Subject: [PATCH] bird6: bird build with IPv6 support --- pkgs/servers/bird/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/bird/default.nix b/pkgs/servers/bird/default.nix index 574f372a7f22..3180238c618b 100644 --- a/pkgs/servers/bird/default.nix +++ b/pkgs/servers/bird/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, flex, bison, readline }: +{ stdenv, fetchurl, flex, bison, readline +, enableIPv6 ? false }: stdenv.mkDerivation rec { name = "bird-1.6.0"; @@ -16,7 +17,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir /var" - ]; + ] ++ stdenv.lib.optional enableIPv6 "--enable-ipv6"; meta = { description = "BIRD Internet Routing Daemon"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 63df5b3cce83..1b32b3b1c124 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9871,6 +9871,7 @@ in bind = callPackage ../servers/dns/bind { }; bird = callPackage ../servers/bird { }; + bird6 = bird.override { enableIPv6 = true; }; bosun = (callPackage ../servers/monitoring/bosun { }).bin // { outputs = [ "bin" ]; }; scollector = bosun;