···37373838 [reflector]
3939 enable-reflector=${yesNo reflector}
4040+ ${extraConfig}
4041 '';
41424243in
···173174 description = ''
174175 Number of resource records to be cached per interface. Use 0 to
175176 disable caching. Avahi daemon defaults to 4096 if not set.
177177+ '';
178178+ };
179179+180180+ extraConfig = mkOption {
181181+ default = "";
182182+ type = types.lines;
183183+ description = ''
184184+ Extra config to append to avahi-daemon.conf.
176185 '';
177186 };
178187
···11{ stdenv
22, fetchurl
33+, fetchpatch
34# Excerpt from glpk's INSTALL file:
45# This feature allows the exact simplex solver to use the GNU MP
56# bignum library. If it is disabled, the exact simplex solver uses the
···2829 "--with-gmp"
2930 ];
30313232+ patches = [
3333+ # GLPK makes it possible to customize its message printing behaviour. Sage
3434+ # does that and needs to differentiate between printing regular messages and
3535+ # printing errors. Unfortunately there is no way to tell and glpk upstream
3636+ # rejected this patch. All it does is set the variable pointing to the error
3737+ # file back to NULL before glpk calls abort(). In sage's case, abort won't
3838+ # actually be called because the error handler jumps out of the function.
3939+ # This shouldn't affect everybody else, since glpk just calls abort()
4040+ # immediately afterwards anyways.
4141+ # See the sage trac ticket for more details:
4242+ # https://trac.sagemath.org/ticket/20710#comment:18
4343+ (fetchpatch {
4444+ name = "error_recovery.patch";
4545+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/glpk/patches/error_recovery.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
4646+ sha256 = "0z99z9gd31apb6x5n5n26411qzx0ma3s6dnznc4x61x86bhq31qf";
4747+ })
4848+ ];
4949+3150 doCheck = true;
32513352 meta = {
···4362 homepage = http://www.gnu.org/software/glpk/;
4463 license = stdenv.lib.licenses.gpl3Plus;
45644646- maintainers = with stdenv.lib.maintainers; [ bjg ];
6565+ maintainers = with stdenv.lib.maintainers; [ bjg timokau ];
4766 platforms = stdenv.lib.platforms.all;
4867 };
4968}
···11-{ stdenv, fetchPypi, buildPythonPackage
11+{ stdenv, fetchPypi, buildPythonPackage, fetchpatch
22, more-itertools, six
33, pytest, pytestcov, portend
44, backports_unittest-mock
···1313 sha256 = "8e3ac15e1efffc81425a693e99b3c09d7ea4bf947255d8d4c38e2cf76f3a4d25";
1414 };
15151616- propagatedBuildInputs = [ more-itertools six ];
1616+ patches = fetchpatch {
1717+ name = "cheroot-fix-setup-python3.patch";
1818+ url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/cheroot-fix-setup-python3.patch?h=packages/python-cheroot";
1919+ sha256 = "1rlgz0qln536y00mfqlf0i9hz3f53id73wh47cg5q2vcsw1w2bpc";
2020+ };
2121+2222+ propagatedBuildInputs = [ more-itertools six backports_functools_lru_cache ];
17231818- checkInputs = [ pytest pytestcov portend backports_unittest-mock backports_functools_lru_cache ];
2424+ checkInputs = [ pytest pytestcov portend backports_unittest-mock ];
19252026# Disable testmon, it needs pytest-testmon, which we do not currently have in nikpkgs,
2127# and is only used to skip some tests that are already known to work.