From e458879574953a45f48e91e0dcb2b43e75585c33 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 29 Jan 2024 16:17:36 +0000 Subject: [PATCH] louvain-community: unstable-2021-03-18 -> unstable-2024-01-30 Without the change the build against `gcc-13` fails as: https://cache.nixos.org/log/xpqnf8kk3wxgqspxf2khipxlv0wf8i36-louvain-community-unstable-2021-03-18.drv /build/source/src/louvain_communities.cpp: At global scope: /build/source/src/louvain_communities.cpp:60:5: error: 'uint32_t' does not name a type 60 | uint32_t verbosity = 0; | ^~~~~~~~ /build/source/src/louvain_communities.cpp:44:1: note: 'uint32_t' is defined in header ''; did you forget to '#include '? 43 | #include "GitSHA1.h" +++ |+#include 44 | While at it added a trivial unstable updater. --- pkgs/by-name/lo/louvain-community/package.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/lo/louvain-community/package.nix b/pkgs/by-name/lo/louvain-community/package.nix index e9dfdf722efd..857857092353 100644 --- a/pkgs/by-name/lo/louvain-community/package.nix +++ b/pkgs/by-name/lo/louvain-community/package.nix @@ -2,21 +2,24 @@ , fetchFromGitHub , cmake , lib +, unstableGitUpdater }: stdenv.mkDerivation (finalAttrs: { pname = "louvain-community"; - version = "unstable-2021-03-18"; + version = "unstable-2024-01-30"; src = fetchFromGitHub { owner = "meelgroup"; repo = "louvain-community"; - rev = "8cc5382d4844af127b1c1257373740d7e6b76f1e"; - hash = "sha256-0i3wrDdOyleOPv5iVO1YzPfTPnIdljLabCvl3SYEQOs="; + rev = "681a711a530ded0b25af72ee4881d453a80ac8ac"; + hash = "sha256-mp2gneTtm/PaCqz4JNOZgdKmFoV5ZRVwNYjHc4s2KuY="; }; nativeBuildInputs = [ cmake ]; + passthru.updateScript = unstableGitUpdater {}; + meta = with lib; { description = "Louvain Community Detection Library"; homepage = "https://github.com/meelgroup/louvain-community";