! SPDX-FileCopyrightText: 2026
! SPDX-License-Identifier: ISC
!
! Permission to use, copy, modify, and/or distribute this
! software for any purpose with or without fee is hereby
! granted, provided that the above copyright notice & this
! permission notice appear in all copies.
!
! THE SOFTWARE IS PROVIDED “AS IS” & ISC DISCLAIMS ALL
! WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
! WARRANTIES OF MERCHANTABILITY & FITNESS. IN NO EVENT SHALL ISC
! BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
! DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
! DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
! OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
! THE USE OR PERFORMANCE OF THIS SOFTWARE.
! ──────────────────────────────────────────────────────────────
! This file was generated by darcs-hooks2.
! ──────────────────────────────────────────────────────────────
USING: accessors assocs darcs-hooks2 io.launcher kernel
namespaces sequences ;

! Feed metadata for tag atom feed:
feed-meta new
    "https://nixtamal.toast.al" >>url
    "Nixtamal (stable)" >>title
feed-meta set-global

H{
    { "post-obliterate" [ tweak-weak-hash-file tweak-tags-atom ] }
    { "post-apply" [
            tweak-weak-hash-file tweak-tags-atom
            "nix-build --no-out-link release.nix" try-process
            "nix-build release.nix -A check" try-process
        ] }
    { "pre-push" [
            "nix-build --no-out-link release-dev.nix" try-process
            "nix-build release-dev.nix -A check" try-process
        ] }
    { "post-tag" [ tweak-weak-hash-file tweak-tags-atom ] }
    { "post-record" [ tweak-weak-hash-file ] }
    { "post-amend" [ tweak-weak-hash-file ] }
    { "post-unrecord" [ tweak-weak-hash-file ] }
} hook-actions set-global
