~aasg/nixexprs

ref: ef110d1cd4cb6308092c7ebb332d2793fd026c5b nixexprs/patches/bird-lg/default.nix -rw-r--r-- 370 bytes
ef110d1c — Aluísio Augusto Silva Gonçalves bird-lg: Move local patches to patches/, per policy 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
{ bird-lg }:

bird-lg.overrideAttrs (oldAttrs: {
  postPatch = ''
    # Don't configure a log file; let systemd handle it.
    sed -i '/file_handler/d' lg.py lgproxy.py

    # Replace the builtin config file with one given through an
    # environment variable.
    sed -i '/app\.config\.from_pyfile/c app.config.from_envvar("BIRD_LG_CONFIG")' lg.py lgproxy.py
  '';
})