Switch from nixpkgs-unstable to nixpkgs-25.11 which has Go 1.25.6. Drop flake-utils in favor of inline forAllSystems helper (modern convention). Refactor default.nix to follow callPackage conventions (explicit deps). Extract packages.nix for cleaner separation. Adjustments from original PR: - Removed unnecessary icu/pkg-config deps (no CGO/ICU usage in beads) - Removed commented-out dead overlay code - Preserved shell completion sub-packages (fish/bash/zsh) Closes #2314 Co-Authored-By: Nick Zadrozny <nz@omc.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
63 lines
1.3 KiB
Nix
63 lines
1.3 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"
|
|
];
|
|
forAllSystems =
|
|
f:
|
|
nixpkgs.lib.genAttrs systems (
|
|
system:
|
|
f {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
inherit system self;
|
|
}
|
|
);
|
|
in
|
|
{
|
|
packages = forAllSystems (args: import ./packages.nix args);
|
|
|
|
apps = forAllSystems (
|
|
{ self, system, ... }:
|
|
{
|
|
default = {
|
|
type = "app";
|
|
program = "${self.packages.${system}.default}/bin/bd";
|
|
};
|
|
}
|
|
);
|
|
|
|
devShells = forAllSystems (
|
|
{ pkgs, ... }:
|
|
{
|
|
default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
go
|
|
git
|
|
gopls
|
|
gotools
|
|
golangci-lint
|
|
sqlite
|
|
];
|
|
shellHook = ''
|
|
echo "beads development shell"
|
|
echo "Go version: $(go version)"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|