Break out nix package definition into a default.nix (#105)
* Fix autostart test to work in nix sandbox * Break out a default.nix to make consuming this package easier The flake is great for local development, but creates overhead and duplication when pulling it in on another machine. With the default.nix, the flake continues to work as before, but consumers can callPackage directly with their own nixpkgs. * Break out a default.nix to make consuming this package easier The flake is great for local development, but creates overhead and duplication when pulling it in on another machine. With the default.nix, the flake continues to work as before, but consumers can callPackage directly with their own nixpkgs.
This commit is contained in:
21
default.nix
Normal file
21
default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ pkgs, self }:
|
||||
pkgs.buildGoModule {
|
||||
pname = "beads";
|
||||
version = "0.9.9";
|
||||
|
||||
src = self;
|
||||
|
||||
# Point to the main Go package
|
||||
subPackages = [ "cmd/bd" ];
|
||||
|
||||
# Go module dependencies hash (computed via nix build)
|
||||
vendorHash = "sha256-9xtp1ZG7aYXatz02PDTmSRXwBDaW0kM7AMQa1RUau4U=";
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "beads (bd) - An issue tracker designed for AI-supervised coding workflows";
|
||||
homepage = "https://github.com/steveyegge/beads";
|
||||
license = licenses.mit;
|
||||
mainProgram = "bd";
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user