push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
{
lib,
stdenv,
fetchurl,
apr,
scons,
openssl,
aprutil,
zlib,
libkrb5,
pkg-config,
libiconv,
fetchpatch,
}:
stdenv.mkDerivation rec {
pname = "serf";
version = "1.3.10";
src = fetchurl {
url = "mirror://apache/serf/${pname}-${version}.tar.bz2";
hash = "sha256-voHvCLqiUW7Np2p3rffe97wyJ+61eLmjO0X3tB3AZOY=";
};
nativeBuildInputs = [
pkg-config
scons
];
buildInputs = [
apr
openssl
aprutil
zlib
libiconv
]
++ lib.optional (!stdenv.hostPlatform.isCygwin) libkrb5;
patches = [
./scons.patch
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/libserf/raw/rawhide/f/libserf-1.3.9-errgetfunc.patch";
hash = "sha256-FQJvXOIZ0iItvbbcu4kR88j74M7fOi7C/0NN3o1/ub4=";
})
];
prefixKey = "PREFIX=";
preConfigure = ''
appendToVar sconsFlags "APR=$(echo ${apr.dev}/bin/*-config)"
appendToVar sconsFlags "APU=$(echo ${aprutil.dev}/bin/*-config)"
appendToVar sconsFlags "CC=$CC"
appendToVar sconsFlags "OPENSSL=${openssl}"
appendToVar sconsFlags "ZLIB=${zlib}"
''
+ lib.optionalString (!stdenv.hostPlatform.isCygwin) ''
appendToVar sconsFlags "GSSAPI=${libkrb5.dev}"
'';
enableParallelBuilding = true;
meta = with lib; {
description = "HTTP client library based on APR";
homepage = "https://serf.apache.org/";
license = licenses.asl20;
maintainers = with maintainers; [
orivej
raskin
];
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/SConstruct b/SConstruct
index 4358a23..6ce7776 100644
--- a/SConstruct
+++ b/SConstruct
@@ -155,6 +155,8 @@ if sys.platform == 'win32':
env = Environment(variables=opts,
tools=('default', 'textfile',),
CPPPATH=['.', ],
+ AR=os.environ['AR'],
+ ENV=os.environ,
)
env.Append(BUILDERS = {