diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-02-14 18:01:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 18:01:42 +0000 |
commit | fc96101774f0caa9df821669276a158ffecce5eb (patch) | |
tree | 8c978aca6a189f412ffb0406514e348ddffe0d32 /pkgs/tools/networking | |
parent | 37e6797a3079d2152f8ccc5783acd68054ee5012 (diff) | |
parent | 52e165035c897a7b41ff26bc235f8d841e9d3850 (diff) | |
download | nixlib-fc96101774f0caa9df821669276a158ffecce5eb.tar nixlib-fc96101774f0caa9df821669276a158ffecce5eb.tar.gz nixlib-fc96101774f0caa9df821669276a158ffecce5eb.tar.bz2 nixlib-fc96101774f0caa9df821669276a158ffecce5eb.tar.lz nixlib-fc96101774f0caa9df821669276a158ffecce5eb.tar.xz nixlib-fc96101774f0caa9df821669276a158ffecce5eb.tar.zst nixlib-fc96101774f0caa9df821669276a158ffecce5eb.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/netbird/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/networking/xrootd/default.nix | 52 |
2 files changed, 43 insertions, 15 deletions
diff --git a/pkgs/tools/networking/netbird/default.nix b/pkgs/tools/networking/netbird/default.nix index 2ad3922212a9..8f9570af4015 100644 --- a/pkgs/tools/networking/netbird/default.nix +++ b/pkgs/tools/networking/netbird/default.nix @@ -31,16 +31,16 @@ let in buildGoModule rec { pname = "netbird"; - version = "0.25.7"; + version = "0.25.8"; src = fetchFromGitHub { owner = "netbirdio"; repo = pname; rev = "v${version}"; - hash = "sha256-DclCqXNGXFTbJTD6zllCUfSR3twnnS4rfXMuRtWQpeQ="; + hash = "sha256-BsExPkUbkHJbi4oWKEH9tPoipGutzz19FuLxImlFUVQ="; }; - vendorHash = "sha256-61i/QqUFuKXbOGBJVDRi5BdUxB/k18RM8dvgQwiHb/k="; + vendorHash = "sha256-CFLwb5cqsfxTxOwuLOB0IMYkRZUNPgB7grjQ4xm84BM="; nativeBuildInputs = [ installShellFiles ] ++ lib.optional ui pkg-config; diff --git a/pkgs/tools/networking/xrootd/default.nix b/pkgs/tools/networking/xrootd/default.nix index e32139fdfceb..991b9039860e 100644 --- a/pkgs/tools/networking/xrootd/default.nix +++ b/pkgs/tools/networking/xrootd/default.nix @@ -2,8 +2,10 @@ , stdenv , callPackage , fetchFromGitHub +, davix , cmake , cppunit +, gtest , makeWrapper , pkg-config , curl @@ -14,6 +16,7 @@ , libxml2 , openssl , readline +, scitokens-cpp , systemd , voms , zlib @@ -22,21 +25,19 @@ # If not null, the builder will # move "$out/etc" to "$out/etc.orig" and symlink "$out/etc" to externalEtc. , externalEtc ? "/etc" +, removeReferencesTo }: stdenv.mkDerivation (finalAttrs: { - - __structuredAttrs = true; - pname = "xrootd"; - version = "5.5.5"; + version = "5.6.6"; src = fetchFromGitHub { owner = "xrootd"; repo = "xrootd"; rev = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-SLmxv8opN7z4V07S9kLGo8HG7Ql62iZQLtf3zGemwA8="; + hash = "sha256-vSZKTsDMY5bhfniFOQ11VA30gjfb4Y8tCC7JNjNw8Y0="; }; outputs = [ "bin" "out" "dev" "man" ] @@ -62,9 +63,11 @@ stdenv.mkDerivation (finalAttrs: { cmake makeWrapper pkg-config + removeReferencesTo ]; buildInputs = [ + davix curl libkrb5 libuuid @@ -72,7 +75,11 @@ stdenv.mkDerivation (finalAttrs: { libxml2 openssl readline + scitokens-cpp zlib + ] + ++ lib.optionals (!stdenv.isDarwin) [ + # https://github.com/xrootd/xrootd/blob/5b5a1f6957def2816b77ec773c7e1bfb3f1cfc5b/cmake/XRootDFindLibs.cmake#L58 fuse ] ++ lib.optionals stdenv.isLinux [ @@ -80,11 +87,16 @@ stdenv.mkDerivation (finalAttrs: { voms ] ++ lib.optionals enableTestRunner [ + gtest cppunit ]; preConfigure = '' patchShebangs genversion.sh + substituteInPlace cmake/XRootDConfig.cmake.in \ + --replace-fail "@PACKAGE_CMAKE_INSTALL_" "@CMAKE_INSTALL_FULL_" + '' + lib.optionalString stdenv.isDarwin '' + sed -i cmake/XRootDOSDefs.cmake -e '/set( MacOSX TRUE )/ainclude( GNUInstallDirs )' ''; # https://github.com/xrootd/xrootd/blob/master/packaging/rhel/xrootd.spec.in#L665-L675= @@ -98,21 +110,37 @@ stdenv.mkDerivation (finalAttrs: { install -m 644 -t "$out/etc/xrootd/client.plugins.d" ../packaging/common/client-plugin.conf.example mkdir -p "$out/etc/logrotate.d" install -m 644 -T ../packaging/common/xrootd.logrotate "$out/etc/logrotate.d/xrootd" + '' + # Leaving those in bin/ leads to a cyclic reference between $dev and $bin + # This happens since https://github.com/xrootd/xrootd/commit/fe268eb622e2192d54a4230cea54c41660bd5788 + # So far, this xrootd-config script does not seem necessary in $bin + + '' + moveToOutput "bin/xrootd-config" "$dev" + moveToOutput "bin/.xrootd-config-wrapped" "$dev" '' + lib.optionalString stdenv.isLinux '' mkdir -p "$out/lib/systemd/system" install -m 644 -t "$out/lib/systemd/system" ../packaging/common/*.service ../packaging/common/*.socket ''; - cmakeFlags = lib.optionals enableTestRunner [ + cmakeFlags = [ + "-DXRootD_VERSION_STRING=${finalAttrs.version}" + ] ++ lib.optionals enableTestRunner [ + "-DFORCE_ENABLED=TRUE" + "-DENABLE_DAVIX=TRUE" + "-DENABLE_FUSE=${if (!stdenv.isDarwin) then "TRUE" else "FALSE"}" # not supported + "-DENABLE_MACAROONS=OFF" + "-DENABLE_PYTHON=FALSE" # built separately + "-DENABLE_SCITOKENS=TRUE" "-DENABLE_TESTS=TRUE" + "-DENABLE_VOMS=${if stdenv.isLinux then "TRUE" else "FALSE"}" ]; - makeWrapperArgs = [ - # Workaround the library-not-found issue - # happening to binaries compiled with xrootd libraries. - # See #169677 - "--prefix" "${lib.optionalString stdenv.hostPlatform.isDarwin "DY"}LD_LIBRARY_PATH" ":" "${placeholder "out"}/lib" - ]; + # Workaround the library-not-found issue + # happening to binaries compiled with xrootd libraries. + # See #169677 + preFixup = '' + makeWrapperArgs+=("--prefix" "${lib.optionalString stdenv.hostPlatform.isDarwin "DY"}LD_LIBRARY_PATH" ":" "${placeholder "out"}/lib") + ''; postFixup = '' while IFS= read -r FILE; do |