/* GNU Guix --- Functional package management for GNU Copyright (C) 2012, 2013 Ludovic Courtès This file is part of GNU Guix. GNU Guix is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Guix. If not, see . */ #include #include #include extern "C" { void guix_hash_init (struct guix_hash_context *ctx, int algo) { gcry_error_t err; err = gcry_md_open (&ctx->md_handle, algo, 0); assert (err == GPG_ERR_NO_ERROR); } void guix_hash_update (struct guix_hash_context *ctx, const void *buffer, size_t len) { gcry_md_write (ctx->md_handle, buffer, len); } void guix_hash_final (void *resbuf, struct guix_hash_context *ctx, int algo) { memcpy (resbuf, gcry_md_read (ctx->md_handle, algo), gcry_md_get_algo_dlen (algo)); gcry_md_close (ctx->md_handle); ctx->md_handle = NULL; } } 846a7e2e814976fefcd9eda7d3'>commitdiff
AgeCommit message (Expand)Author
2023-10-24gnu: go-ipfs: Update to 0.15.0....* gnu/packages/ipfs.scm (go-ipfs): Update to 0.15.0. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Artyom V. Poptsov
2023-10-24gnu: Deprecate the "go-ipfs" variable....* gnu/packages/ipfs.scm (go-ipfs): Rename to "kubo". (go-ipfs): Define as deprecated by "kubo". Signed-off-by: Ludovic Courtès <ludo@gnu.org> Artyom V. Poptsov
2023-10-22gnu: go-github-com-stretchr-testify: Move to (gnu packages golang-check)....* gnu/packages/golang.scm (go-github-com-stretchr-testify): Move from here... * gnu/packages/golang-check.scm: ...to here. * gnu/packages/databases.scm: Add (gnu packages golang-check) module. * gnu/packages/education.scm: As above... * gnu/packages/ipfs.scm: As above... * gnu/packages/irc.scm: As above... * gnu/packages/mail.scm: As above... * gnu/packages/textutils.scm: As above... * gnu/packages/version-control.scm: As above... Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sharlatan Hellseher
2023-10-05gnu: go-ipfs: Update to 0.14.0....* gnu/packages/ipfs.scm (go-ipfs): Update to 0.14.0. [source]: Change "go-ipfs" to "kubo" in the source link. [arguments]: Rename "go-ipfs" to "kubo". Signed-off-by: Ludovic Courtès <ludo@gnu.org> Artyom V. Poptsov
2023-09-14gnu: go-ipfs: Update to 0.13.0....* gnu/packages/ipfs.scm (go-ipfs): Update to 0.13.0. [inputs]: Add GO-GOLANG-ORG-X-{EXP,TEXT}. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Artyom V. Poptsov
2022-09-24gnu: go-ipfs: Unbundle many dependencies....Tested with "./pre-inst-env guix build go-ipfs" and "make check-system TESTS=ipfs". go-github-com-blang-semver is currently out-of-date, so it cannot be unbundled yet (at least, the build process seems to complain about the version). * gnu/packages/ipfs.scm (go-ipfs)[source]: Add snippet removing many bundled dependencies. [inputs]: Add many inputs. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos
2022-09-14gnu: go-ipfs: Install bash completion....* gnu/packages/ipfs.scm (go-ipfs)[arguments]: Use gexp. Add 'install-bashcompletion phase to install bash completion. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Michael Rohleder