aboutsummaryrefslogtreecommitdiff
path: root/nix/libutil/sha1.h
blob: d2d071e0588efe9a04f8efcdd220f7f902dbf99e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* GNU Guix --- Functional package management for GNU
   Copyright (C) 2012  Ludovic Courtès <ludo@gnu.org>

   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 <http://www.gnu.org/licenses/>.  */

#include <gcrypt-hash.hh>

#define SHA_CTX guix_hash_context

static inline void
SHA1_Init (struct SHA_CTX *ctx)
{
  guix_hash_init (ctx, GCRY_MD_SHA1);
}

#define SHA1_Update guix_hash_update

static inline void
SHA1_Final (void *resbuf, struct SHA_CTX *ctx)
{
  guix_hash_final (resbuf, ctx, GCRY_MD_SHA1);
}
: Remove gcc-5. Change-Id: I2bcaea77019bb69214878713aa57cbef49c473db 2023-12-19gnu: ovmf-arm: Update to use GCC5.spacecadet@purge.sh * gnu/packages/firmware.scm (ovmf-arm): Updating OVMF to 202308 requires GCC5, packages inheriting from ovmf also need to be updated. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: I3a7b3f450e0da39129e7cffce7482b8e391e3858 2023-12-19gnu: ovmf-aarch64: Update to use GCC5.spacecadet@purge.sh * gnu/packages/firmware.scm (ovmf-aarch64): Updating OVMF to 202308 requires GCC5, packages inheriting from ovmf also need to be updated. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: Iccd674f82c2f0160fa8097a09d10154be9736042 2023-12-19gnu: ovmf: Add OVMF_CODE and OVMF_VARS files.spacecadet@purge.sh * gnu/packages/firmware.scm (ovmf)[arguments]: Add OVMF_CODE.fd and OVMF_VARS.fs to outputs as ovmf_code_arch.bin and ovmf_vars_arch.bin, respectively, for both ia32 and x64 architectures. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: Ie329f3f3515e7d015d9fbad01b8c2b82dc7da76e 2023-12-19gnu: ovmf: Update to 202308.spacecadet@purge.sh * gnu/packages/firmware.scm (ovmf): Update to 202308. [arguments]: Adjust phases to not hardcode gcc toolchain version. [native-inputs]: Remove python-2. Add perl, python-3. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: I74a7bd26240821aacf35e5020d9687406e7da9ed 2023-12-12gnu: make-crust-package: Don't run from avr.Efraim Flashner * gnu/packages/firmware.scm (make-crust-package)[arguments]: In make-flags don't create tools which can be run from avr. Change-Id: I118b4941889b884de1e491ace3818d878a887d7c 2023-12-11gnu: make-qmk-firmware: Use AVR target.Jean-Pierre De Jesus DIAZ * gnu/packages/firmware.scm (qmk)[inputs]: Remove AVR toolchain. [arguments]: Adjust phase wrapping output. (make-qmk-firmware/implementation)[arguments]: Add avr as target. Change-Id: Ibe09f6ef3c555052faf2c5c243303d85675866be Signed-off-by: Efraim Flashner <efraim@flashner.co.il> 2023-12-11gnu: make-ergodox-firmware: Use AVR target.Jean-Pierre De Jesus DIAZ * gnu/packages/firmware.scm (make-ergodox-firmware/implementation): [arguments]: Add avr as target. [native-inputs]: Remove make-avr-toolchain. Change-Id: I4345a55d5dbd436d524de4886969b3332c6288a9 Signed-off-by: Efraim Flashner <efraim@flashner.co.il> 2023-10-31gnu: b43-tools: Use make-flags.Efraim Flashner * gnu/packages/firmware.scm (b43-tools)[arguments]: Add make-flags. Use make-flags in custom 'build and 'install phases. Remove trailing #t from phases. Change-Id: I8576351ecd571d191598943a2d143ab3e3e9da09 2023-10-26gnu: fcode-utils: Fix cross-compilation.Zheng Junjie * gnu/packages/firmware.scm (fcode-utils) [arguments]: use STRIP-FOR-TARGET. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> 2023-10-22gnu: make-opensbi-package: Set target to #false.Efraim Flashner * gnu/packages/firmware.scm (make-opensbi-package)[arguments]: Set target to #false. 2023-10-19gnu: openfwwf-firmware: Don't build for a specific target.Efraim Flashner * gnu/packages/firmware.scm (openfwwf-firmware)[arguments]: Set target to #f since we're building firmware files. 2023-10-19gnu: ath9k-htc-firmware: Don't build for a specific target.Efraim Flashner * gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Set target to #f since we're building firmware files. 2023-10-10gnu: Add ergodox-firmware-workman-p-kinesis-mod.Maxim Cournoyer * gnu/packages/firmware.scm (ergodox-firmware-workman-p-kinesis-mod): New variable. 2023-10-10gnu: Add ergodox-firmware-qwerty-kinesis-mod.Maxim Cournoyer * gnu/packages/firmware.scm (ergodox-firmware-qwerty-kinesis-mod): New variable. 2023-10-10gnu: Add ergodox-firmware-dvorak-kinesis-mod.Maxim Cournoyer * gnu/packages/firmware.scm (ergodox-firmware-dvorak-kinesis-mod): New variable. 2023-10-10gnu: Add ergodox-firmware-colemak-symbol-mod.Maxim Cournoyer * gnu/packages/firmware.scm (ergodox-firmware-colemak-symbol-mod): New variable. 2023-10-10gnu: Add ergodox-firmware-colemak-jc-mod.Maxim Cournoyer * gnu/packages/firmware.scm (make-ergodox-firmware): New procedure (ergodox-firmware-colemak-jc-mod): New variable. * gnu/packages/patches/ergodox-firmware-fix-json-target.patch: New file. * gnu/packages/patches/ergodox-firmware-fix-numpad.patch: Likewise. * gnu/local.mk (dist_patch_DATA): Register them. 2023-10-10gnu: Add qmk-firmware-ergodox-ez-dvorak-emacs-software.Maxim Cournoyer * gnu/packages/firmware.scm (qmk-firmware-ergodox-ez-dvorak-emacs-software): New variable. 2023-10-10gnu: Add qmk-firmware-ergodox-ez-dvorak-emacs.Maxim Cournoyer * gnu/packages/firmware.scm (qmk-firmware-ergodox-ez-dvorak-emacs): New variable. 2023-10-10gnu: Add qmk-firmware-ergodox-ez-dvorak.Maxim Cournoyer * gnu/packages/firmware.scm (qmk-firmware-ergodox-ez-dvorak): New variable. 2023-10-10gnu: Add qmk-firmware-ergodox-ez-hacker-dvorak.Maxim Cournoyer * gnu/packages/firmware.scm (qmk-firmware-ergodox-ez-hacker-dvorak): New variable. * gnu/packages/patches/qmk-firmware-fix-hacker-dvorak.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. 2023-10-10gnu: Add qmk-udev-rules.Maxim Cournoyer * gnu/packages/firmware.scm (qmk-udev-rules): New variable. 2023-10-10gnu: Add qmk-firmware-ergodox-ez-dvorak-42-key.Maxim Cournoyer * gnu/packages/firmware.scm (qmk-firmware-ergodox-ez-dvorak-42-key): New variable. 2023-10-10gnu: Add qmk-firmware-ergodox-ez-default.Maxim Cournoyer * gnu/packages/firmware.scm (make-qmk-firmware/implementation) (make-qmk-firmware): New procedures. (qmk-firmware-ergodox-ez-default): New variable. Series-changes: 2 - Install firmware from root directory, not .build - Also honor .bin and .uf2 firmware file extensions 2023-10-10gnu: qmk: Add many missing inputs and add more commands to PATH.Maxim Cournoyer * gnu/packages/firmware.scm (qmk) [inputs]: Add bash-minimal, dfu-util, diffutils, gawk, gnu-make, grep and python. [arguments]: Add them to PATH in the wrapper in the wrap-path phase. Also capture avr-ar in the PATH. Add CROSS_C_INCLUDE_PATH and CROSS_LIBRARY_PATH to the wrapper. 2023-10-10gnu: qmk: Use GCC 8 for the AVR toolchain.Maxim Cournoyer * gnu/packages/firmware.scm (qmk) [inputs]: Specify 'gcc-8' as the #:xgcc argument to the 'make-avr-toolchain' procedure. 2023-10-10gnu: qmk: Avoid propagating inputs.Maxim Cournoyer * gnu/packages/firmware.scm (qmk): [arguments]: New modules and phases arguments. [propagated-inputs]: Turn into... [inputs]: ... this. Add coreutils-minimal, sed and util-linux. [description]: Expound. 2023-10-10gnu: qmk: Style.Maxim Cournoyer * gnu/packages/firmware.scm (qmk): Apply 'guix style' changes. 2023-09-25gnu: edk2-tools: Update to 202308.Maxim Cournoyer * gnu/packages/firmware.scm (edk2-tools): Update to 202308. [arguments] <make-flags>: Add CC. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2023-09-17gnu: Remove extraneous imports.Maxim Cournoyer Found by running 'guild compile -W3 gnu/packages/$module.scm', using guild from the upcoming Guile. * gnu/packages/admin.scm: Remove extraneous imports. * gnu/packages/avr.scm: Likewise. * gnu/packages/base.scm: Likewise. * gnu/packages/bootloaders.scm: Likewise. * gnu/packages/firmware.scm: Likewise. * gnu/packages/linphone.scm: Likewise. * gnu/packages/telephony.scm: Likewise. * gnu/packages/cran.scm: Likewise. * gnu/packages/kde.scm: Likewise. * gnu/packages/libcanberra.scm: Likewise. * gnu/packages/libreoffice.scm: Likewise. * gnu/packages/mes.scm: Likewise. * gnu/packages/mingw.scm: Likewise. * gnu/packages/serialization.scm: Likewise. * gnu/packages/sync.scm: Likewise. * gnu/packages/syncthing.scm: Likewise. * gnu/packages/terminals.scm: Likewise. * gnu/packages/version-control.scm: Likewise. * gnu/packages/video.scm: Likewise. * gnu/packages/wm.scm: Likewise. * gnu/packages/emulators.scm: Likewise. Reviewed-by: Ludovic Courtès <ludo@gnu.org> 2023-08-29gnu: Add qmk.Jean-Pierre De Jesus DIAZ * gnu/packages/firmware.scm (qmk): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> Signed-off-by: Vagrant Cascadian <vagrant@debian.org> 2023-07-25gnu: opensbi: Remove configure-flags.Efraim Flashner The 'configure phase is removed and nothing uses it. * gnu/packages/firmware.scm (make-opensbi-package)[arguments]: Remove configure-flags. 2023-07-25gnu: opensbi: Update to 1.3.1.Efraim Flashner * gnu/packages/firmware.scm (make-opensbi-package): Update to 1.3.1. 2023-07-19gnu: arm-trusted-firmware: Update to 2.9.Vagrant Cascadian * gnu/packages/firmware.scm (make-arm-trusted-firmware): Update to 2.9. (arm-trusted-firmware-imx8mq): Keep at version 2.8. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>