···64 name = "git-annex-${super.git-annex.version}-src";
65 url = "git://git-annex.branchable.com/";
66 rev = "refs/tags/" + super.git-annex.version;
67- sha256 = "1022ff2x9jvi2a0820lbgmmh54cxh1vbn0qfdwr50w7ggvjp88i6";
68 # delete android and Android directories which cause issues on
69 # darwin (case insensitive directory). Since we don't need them
70 # during the build process, we can delete it to prevent a hash
···19901991 # Needs Cabal >= 3.4
1992 chs-cabal = super.chs-cabal.override {
1993- Cabal = self.Cabal_3_6_1_0;
1994 };
19951996 # 2021-08-18: streamly-posix was released with hspec 2.8.2, but it works with older versions too.
···64 name = "git-annex-${super.git-annex.version}-src";
65 url = "git://git-annex.branchable.com/";
66 rev = "refs/tags/" + super.git-annex.version;
67+ sha256 = "1yn84q0iy81b2sczbf4gx8b56f9ghb9kgwjc0n7l5xn5lb2wqlqa";
68 # delete android and Android directories which cause issues on
69 # darwin (case insensitive directory). Since we don't need them
70 # during the build process, we can delete it to prevent a hash
···19901991 # Needs Cabal >= 3.4
1992 chs-cabal = super.chs-cabal.override {
1993+ Cabal = self.Cabal_3_6_2_0;
1994 };
19951996 # 2021-08-18: streamly-posix was released with hspec 2.8.2, but it works with older versions too.
···978 doCheck = with pkgs.stdenv; hostPlatform == buildPlatform
979 && buildPlatform.isx86;
980 };
981+982+ # procex relies on close_range which has been introduced in Linux 5.9,
983+ # the test suite seems to force the use of this feature (or the fallback
984+ # mechanism is broken), so we can't run the test suite on machines with a
985+ # Kernel < 5.9. To check for this, we use uname -r to obtain the Kernel
986+ # version and sort -V to compare against our minimum version. If the
987+ # Kernel turns out to be older, we disable the test suite.
988+ procex = overrideCabal super.procex (drv: {
989+ postConfigure = ''
990+ minimumKernel=5.9
991+ higherVersion=`printf "%s\n%s\n" "$minimumKernel" "$(uname -r)" | sort -rV | head -n1`
992+ if [[ "$higherVersion" = "$minimumKernel" ]]; then
993+ echo "Used Kernel doesn't support close_range, disabling tests"
994+ unset doCheck
995+ fi
996+ '' + (drv.postConfigure or "");
997+ });
998}