diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-01-31 13:46:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 13:46:14 +0100 |
commit | 4a70bf9d73b0a5df41af223a0b60cf1158062383 (patch) | |
tree | 3f38a522f14814d7b4b40dbb79f940471b6d2cbc /pkgs/development/libraries/boehm-gc/default.nix | |
parent | 50adc5a275dee57e8b3599c0b2f325e7eb009321 (diff) | |
parent | b2d0641e340334994ffc1cc455ab8d82a5ffb13d (diff) | |
download | nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.tar nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.tar.gz nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.tar.bz2 nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.tar.lz nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.tar.xz nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.tar.zst nixlib-4a70bf9d73b0a5df41af223a0b60cf1158062383.zip |
Merge pull request #268486 from panicgh/boehmgc
Diffstat (limited to 'pkgs/development/libraries/boehm-gc/default.nix')
-rw-r--r-- | pkgs/development/libraries/boehm-gc/default.nix | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index e37eb26deb38..6da88ee8258f 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -1,7 +1,8 @@ { lib , stdenv -, fetchurl -# doc: https://github.com/ivmai/bdwgc/blob/v8.2.2/doc/README.macros (LARGE_CONFIG) +, fetchFromGitHub +, autoreconfHook +# doc: https://github.com/ivmai/bdwgc/blob/v8.2.4/doc/README.macros (LARGE_CONFIG) , enableLargeConfig ? false , enableMmap ? true , enableStatic ? false @@ -10,19 +11,22 @@ stdenv.mkDerivation (finalAttrs: { pname = "boehm-gc"; - version = "8.2.2"; + version = "8.2.4"; - src = fetchurl { - urls = [ - # "https://www.hboehm.info/gc/gc_source/gc-${finalAttrs.version}.tar.gz" - "https://github.com/ivmai/bdwgc/releases/download/v${finalAttrs.version}/gc-${finalAttrs.version}.tar.gz" - ]; - sha256 = "sha256-8wEHvLBi4JIKeQ//+lbZUSNIVGhZNkwjoUviZLOINqA="; + src = fetchFromGitHub { + owner = "ivmai"; + repo = "bdwgc"; + rev = "v${finalAttrs.version}"; + hash = "sha256-KHijT4BBKfDvTpHpwognN+3ZXoC6JabBTFSYFyOUT9o="; }; outputs = [ "out" "dev" "doc" ]; separateDebugInfo = stdenv.isLinux && stdenv.hostPlatform.libc != "musl"; + nativeBuildInputs = [ + autoreconfHook + ]; + configureFlags = [ "--enable-cplusplus" "--with-libatomic-ops=none" @@ -38,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { # not fix the problem the test failure will be a reminder to # extend the set of versions requiring the workaround). makeFlags = lib.optionals (stdenv.hostPlatform.isPower64 && - finalAttrs.version == "8.2.2") + finalAttrs.version == "8.2.4") [ # do not use /proc primitives to track dirty bits; see: # https://github.com/ivmai/bdwgc/issues/479#issuecomment-1279687537 |