Skip to content

Commit

Permalink
bird-lg: Patch to fix bgpmap generation
Browse files Browse the repository at this point in the history
This is github:elburb/bird-lg#3.
  • Loading branch information
AluisioASG committed Nov 14, 2020
1 parent f4a8690 commit 7e3655c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/servers/monitoring/bird-lg/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, graphviz, python3, traceroute, whois }:
{ stdenv, fetchFromGitHub, fetchpatch, graphviz, python3, traceroute, whois }:
let
runtimeDeps = [
(python3.withPackages (ps: with ps; [
Expand All @@ -24,6 +24,14 @@ stdenv.mkDerivation rec {
sha256 = "0gisi6mbfclw36kms3qy3b0wzcwdkd50p2a6xdwggln4fi5y6bh1";
};

patches = [
(fetchpatch {
name = "fix-bgpmap-generation.patch";
url = "https://github.com/sesa-me/bird-lg/commit/db8fb829d51889fab61bfb5ffac89199442d3117.patch";
sha256 = "1vwr7ck5v7w4fr78kbc4wxyj3licsw7h0772xkmmxsb8vp9vcihg";
})
];

postPatch = ''
# Don't configure a log file; let systemd handle it.
sed -i '/file_handler/d' lg.py lgproxy.py
Expand Down

0 comments on commit 7e3655c

Please sign in to comment.