Files
Fabric/nix/pkgs/fabric/default.nix
2025-07-09 12:07:07 +02:00

40 lines
915 B
Nix

{
self,
lib,
buildGoApplication,
go,
installShellFiles,
}:
buildGoApplication {
pname = "fabric-ai";
version = import ./version.nix;
src = self;
pwd = self;
modules = ./gomod2nix.toml;
doCheck = false;
ldflags = [
"-s"
"-w"
];
inherit go;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --zsh ./completions/_fabric
installShellCompletion --bash ./completions/fabric.bash
installShellCompletion --fish ./completions/fabric.fish
'';
meta = with lib; {
description = "Fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere";
homepage = "https://github.com/danielmiessler/fabric";
license = licenses.mit;
platforms = platforms.all;
mainProgram = "fabric";
};
}