Skip to content
Snippets Groups Projects
  • Ludovic Courtès's avatar
    ce0be567
    packages: Introduce <content-hash> and use it in <origin>. · ce0be567
    Ludovic Courtès authored
    * guix/packages.scm (<content-hash>): New record type.
    (define-content-hash-constructor, build-content-hash)
    (content-hash): New macros.
    (print-content-hash): New procedure.
    (<origin>): Rename constructor to '%origin'.
    [sha256]: Remove field.
    [hash]: New field.  Adjust users.
    (origin-compatibility-helper, origin): New macros.
    (origin-sha256): New deprecated procedure.
    (origin->derivation): Adjust accordingly.
    * tests/packages.scm ("package-source-derivation, origin, sha512"): New
    test.
    * guix/tests.scm: Hide (gcrypt hash) 'sha256' for proper syntax
    matching.
    * tests/challenge.scm: Add #:prefix for (gcrypt hash) and adjust users.
    * tests/derivations.scm: Likewise.
    * tests/store.scm: Likewise.
    * tests/graph.scm ("bag DAG, including origins"): Provide 'sha256' field
    with the right length.
    * gnu/packages/aspell.scm (aspell-dictionary)
    (aspell-dict-ca, aspell-dict-it): Use 'hash' and 'content-hash' for
    proper syntax matching.
    * gnu/packages/bash.scm (bash-patch): Rename 'sha256' to 'sha256-bv'.
    * gnu/packages/bootstrap.scm (bootstrap-executable): Rename 'sha256' to 'bv'.
    * gnu/packages/readline.scm (readline-patch): Likewise.
    * gnu/packages/virtualization.scm (qemu-patch): Rename 'sha256' to
    'sha256-bv'.
    * guix/import/utils.scm: Hide (gcrypt hash) 'sha256'.
    ce0be567
    History
    packages: Introduce <content-hash> and use it in <origin>.
    Ludovic Courtès authored
    * guix/packages.scm (<content-hash>): New record type.
    (define-content-hash-constructor, build-content-hash)
    (content-hash): New macros.
    (print-content-hash): New procedure.
    (<origin>): Rename constructor to '%origin'.
    [sha256]: Remove field.
    [hash]: New field.  Adjust users.
    (origin-compatibility-helper, origin): New macros.
    (origin-sha256): New deprecated procedure.
    (origin->derivation): Adjust accordingly.
    * tests/packages.scm ("package-source-derivation, origin, sha512"): New
    test.
    * guix/tests.scm: Hide (gcrypt hash) 'sha256' for proper syntax
    matching.
    * tests/challenge.scm: Add #:prefix for (gcrypt hash) and adjust users.
    * tests/derivations.scm: Likewise.
    * tests/store.scm: Likewise.
    * tests/graph.scm ("bag DAG, including origins"): Provide 'sha256' field
    with the right length.
    * gnu/packages/aspell.scm (aspell-dictionary)
    (aspell-dict-ca, aspell-dict-it): Use 'hash' and 'content-hash' for
    proper syntax matching.
    * gnu/packages/bash.scm (bash-patch): Rename 'sha256' to 'sha256-bv'.
    * gnu/packages/bootstrap.scm (bootstrap-executable): Rename 'sha256' to 'bv'.
    * gnu/packages/readline.scm (readline-patch): Likewise.
    * gnu/packages/virtualization.scm (qemu-patch): Rename 'sha256' to
    'sha256-bv'.
    * guix/import/utils.scm: Hide (gcrypt hash) 'sha256'.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.