beads/flake.nix
Julian Knutsen 77ab980790
ci(bazel): run the hook-timeout-backends check under Bazel; test-nix stops running tests (#7357)
checks.nix's hook-timeout-backends (the tracked git hook shims against
real GNU/uutils/busybox/toybox timeout implementations, with and without
perl, under dash, bash and busybox ash: 240 cases) was the one test PR
Risk's test-nix ran on a GitHub runner, through `nix flake check`. It is
now //tests/hook_timeout_backends:hook_timeout_backends_test, an sh_test
(pr-core-only) that the bazel-test lane runs remotely on every PR: the
static uutils 0.12.0, busybox 1.35.0 and toybox 0.8.15 binaries come in
sha256-pinned through MODULE.bazel; dash, bash, perl and GNU coreutils
from the executor, failing (not skipping) when one is missing.

checks.nix goes and flake.nix declares no checks, so test-nix's
`nix run .#default` + `nix flake check` is a packaging check (build the
package Nix users install, evaluate every flake output), not a test.
TestHookTimeoutBackendsRunUnderBazel pins the target and that no flake
check comes back.

ga-96smfk.22

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 11:05:39 +00:00

72 lines
1.4 KiB
Nix

{
description = "beads (bd) - An issue tracker designed for AI-supervised coding workflows";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs =
{
self,
nixpkgs,
...
}:
let
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
overlay = import ./overlay.nix self;
forAllSystems =
f:
nixpkgs.lib.genAttrs systems (
system:
f (
import nixpkgs {
inherit system;
overlays = [ overlay ];
}
)
);
in
{
overlays.default = overlay;
packages = forAllSystems (import ./packages.nix);
apps = nixpkgs.lib.genAttrs systems (
system:
rec {
bd = {
type = "app";
program = "${self.packages.${system}.default}/bin/bd";
};
default = bd;
}
);
devShells = forAllSystems (
pkgs:
{
default = pkgs.mkShell {
buildInputs = with pkgs; [
go_1_26
git
gopls
gotools
golangci-lint
];
shellHook = ''
echo "beads development shell"
echo "Go version: $(go version)"
'';
};
}
);
};
}