about summary refs log tree commit diff
path: root/pkgs/by-name/lo
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2024-01-29 16:17:36 +0000
committerSergei Trofimovich <slyich@gmail.com>2024-01-31 22:45:07 +0000
commite458879574953a45f48e91e0dcb2b43e75585c33 (patch)
tree09bd1ab048917db8254cf2d9635b4d7df05bfb84 /pkgs/by-name/lo
parent3b0201816178b4eebb20ba7996ff5bab223ddcac (diff)
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 '<cstdint>'; did you forget to '#include <cstdint>'?
       43 | #include "GitSHA1.h"
      +++ |+#include <cstdint>
       44 |

While at it added a trivial unstable updater.
Diffstat (limited to 'pkgs/by-name/lo')
-rw-r--r--pkgs/by-name/lo/louvain-community/package.nix9
1 files 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 e9dfdf722efdd..857857092353c 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";