···2021buildGoModule rec {
22 pname = "gitea";
23- version = "1.21.3";
2425 # not fetching directly from the git repo, because that lacks several vendor files for the web UI
26 src = fetchurl {
27 url = "https://dl.gitea.com/gitea/${version}/gitea-src-${version}.tar.gz";
28- hash = "sha256-tJC9p7++lb3lD0yYR4qAtFOTRBQK2SkNCD6Tk+g9M78=";
29 };
3031 vendorHash = null;
···2021buildGoModule rec {
22 pname = "gitea";
23+ version = "1.21.4";
2425 # not fetching directly from the git repo, because that lacks several vendor files for the web UI
26 src = fetchurl {
27 url = "https://dl.gitea.com/gitea/${version}/gitea-src-${version}.tar.gz";
28+ hash = "sha256-bkRI2m7aHrQH5wQbm4MoygrF5da7j4i8Qd/aoMJbhS0=";
29 };
3031 vendorHash = null;
···30 })
31 ];
3233- # This differs slightly from the default python installPhase in that it pip-installs
34- # "." instead of "*.whl".
35- # That is because while the default install phase succeeds to build the package,
36- # it fails to generate the file "auto_paridecl.pxd".
37- installPhase = ''
38- export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
39-40- # install "." instead of "*.whl"
41- pip install . --no-index --no-warn-script-location --prefix="$out" --no-cache
42 '';
4344 nativeBuildInputs = [
45 pari
46- python.pythonOnBuildForHost.pkgs.pip
47 ];
4849 buildInputs = [
···56 ];
5758 checkPhase = ''
059 make check
60 '';
61
···1{ lib
2, autoreconfHook
03, fetchPypi
4, buildPythonPackage
5-, cython_3
6, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
7}:
8···18 hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM=";
19 };
200000000021 # explicit check:
22 # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
23 hardeningDisable = [
···34 '';
3536 propagatedBuildInputs = [
37- cython_3
38 ] ++ lib.optionals pariSupport [
39 # When cysignals is built with pari, including cysignals into the
40 # buildInputs of another python package will cause cython to link against
···1{ lib
2, autoreconfHook
3+, fetchpatch
4, fetchPypi
5, buildPythonPackage
6+, cython
7, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
8}:
9···19 hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM=";
20 };
2122+ patches = [
23+ # https://github.com/sagemath/cysignals/pull/193
24+ (fetchpatch {
25+ url = "https://github.com/sagemath/cysignals/commit/474179c87ab0ff562fdfd2471b02797e4bdd3148.diff";
26+ sha256 = "sha256-qEAmf4kU+QDI/JPFNjQMZIjMBk8dnaLmOpagIBMsh7w=";
27+ })
28+ ];
29+30 # explicit check:
31 # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
32 hardeningDisable = [
···43 '';
4445 propagatedBuildInputs = [
46+ cython
47 ] ++ lib.optionals pariSupport [
48 # When cysignals is built with pari, including cysignals into the
49 # buildInputs of another python package will cause cython to link against