mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
e458879574
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.
31 lines
726 B
Nix
31 lines
726 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, lib
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "louvain-community";
|
|
version = "unstable-2024-01-30";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "meelgroup";
|
|
repo = "louvain-community";
|
|
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";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ t4ccer ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|