beads/flake.nix
m4dc4p 8ec8f705b1
Update nix install for v1.0.0 (#3064)
* Beads / dolt requires ICU libraries and headers for https://github.com/dolthub/go-icu-regex - added
* Refactor nix slightly for ergonomics.
* Remove unnecessary overlay
2026-04-07 20:07:07 -07:00

67 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"
];
forAllSystems =
f:
nixpkgs.lib.genAttrs systems (
system:
f {
pkgs = import nixpkgs {
inherit system;
};
inherit system self;
}
);
in rec {
icu = nixpkgs.icu77;
packages = forAllSystems (args: import ./packages.nix (args // { inherit icu; }));
apps = forAllSystems (
{ self, system, ... }:
rec {
bd = {
type = "app";
program = "${self.packages.${system}.default}/bin/bd";
};
default = 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)"
'';
};
}
);
};
}