···6464 name = "git-annex-${super.git-annex.version}-src";
6565 url = "git://git-annex.branchable.com/";
6666 rev = "refs/tags/" + super.git-annex.version;
6767- sha256 = "1022ff2x9jvi2a0820lbgmmh54cxh1vbn0qfdwr50w7ggvjp88i6";
6767+ sha256 = "1yn84q0iy81b2sczbf4gx8b56f9ghb9kgwjc0n7l5xn5lb2wqlqa";
6868 # delete android and Android directories which cause issues on
6969 # darwin (case insensitive directory). Since we don't need them
7070 # during the build process, we can delete it to prevent a hash
···1990199019911991 # Needs Cabal >= 3.4
19921992 chs-cabal = super.chs-cabal.override {
19931993- Cabal = self.Cabal_3_6_1_0;
19931993+ Cabal = self.Cabal_3_6_2_0;
19941994 };
1995199519961996 # 2021-08-18: streamly-posix was released with hspec 2.8.2, but it works with older versions too.
···978978 doCheck = with pkgs.stdenv; hostPlatform == buildPlatform
979979 && buildPlatform.isx86;
980980 };
981981+982982+ # procex relies on close_range which has been introduced in Linux 5.9,
983983+ # the test suite seems to force the use of this feature (or the fallback
984984+ # mechanism is broken), so we can't run the test suite on machines with a
985985+ # Kernel < 5.9. To check for this, we use uname -r to obtain the Kernel
986986+ # version and sort -V to compare against our minimum version. If the
987987+ # Kernel turns out to be older, we disable the test suite.
988988+ procex = overrideCabal super.procex (drv: {
989989+ postConfigure = ''
990990+ minimumKernel=5.9
991991+ higherVersion=`printf "%s\n%s\n" "$minimumKernel" "$(uname -r)" | sort -rV | head -n1`
992992+ if [[ "$higherVersion" = "$minimumKernel" ]]; then
993993+ echo "Used Kernel doesn't support close_range, disabling tests"
994994+ unset doCheck
995995+ fi
996996+ '' + (drv.postConfigure or "");
997997+ });
981998}