Mirror of GNU Guix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.4 KiB

  1. ;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
  2. ;;; Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of Guix.
  5. ;;;
  6. ;;; Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (distro packages bdw-gc)
  19. #:use-module (guix packages)
  20. #:use-module (guix http)
  21. #:use-module (guix utils)
  22. #:use-module (guix build-system gnu))
  23. (define-public libgc
  24. (package
  25. (name "libgc")
  26. (version "7.2alpha6")
  27. (source (origin
  28. (method http-fetch)
  29. (uri (string-append
  30. "http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-"
  31. version ".tar.gz"))
  32. (sha256
  33. (base32
  34. "05jwadjbrv8pr7z9cb4miskicxqpxm0pca4h2rg5cgbpajr2bx7b"))))
  35. (build-system gnu-build-system)
  36. (synopsis "The Boehm-Demers-Weiser conservative garbage collector
  37. for C and C++")
  38. (description
  39. "The Boehm-Demers-Weiser conservative garbage collector can be used
  40. as a garbage collecting replacement for C malloc or C++ new. It allows
  41. you to allocate memory basically as you normally would, without
  42. explicitly deallocating memory that is no longer useful. The collector
  43. automatically recycles memory when it determines that it can no longer
  44. be otherwise accessed.
  45. The collector is also used by a number of programming language
  46. implementations that either use C as intermediate code, want to
  47. facilitate easier interoperation with C libraries, or just prefer the
  48. simple collector interface.
  49. Alternatively, the garbage collector may be used as a leak detector for
  50. C or C++ programs, though that is not its primary goal.")
  51. (home-page "http://www.hpl.hp.com/personal/Hans_Boehm/gc/")
  52. ;; permissive X11-style license:
  53. ;; http://www.hpl.hp.com/personal/Hans_Boehm/gc/license.txt
  54. (license "X11")))