Last active
September 6, 2025 19:06
-
-
Save bogorad/d2d27771e0fe751e94f25776d52fdc83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # modules/auggie.nix | |
| { | |
| config, | |
| lib, | |
| pkgs, | |
| ... | |
| }: | |
| let | |
| auggie-pkg = pkgs.stdenv.mkDerivation rec { | |
| pname = "auggie"; | |
| version = "0.5.3"; | |
| src = pkgs.fetchurl { | |
| url = "https://registry.npmjs.org/@augmentcode/${pname}/-/${pname}-${version}.tgz"; | |
| hash = "sha256-0erVLVh1uPGyurXPzOg6bAyYAEiyXoHy/1Gkz2JfZlM="; | |
| }; | |
| sourceRoot = "package"; | |
| nativeBuildInputs = [ pkgs.makeBinaryWrapper ]; | |
| installPhase = '' | |
| runHook preInstall | |
| mkdir -p $out/bin $out/share/${pname} | |
| cp -r . $out/share/${pname} | |
| makeWrapper ${pkgs.nodejs}/bin/node $out/bin/auggie \ | |
| --add-flags $out/share/${pname}/augment.mjs | |
| runHook postInstall | |
| ''; | |
| meta = { | |
| description = "AI agent that brings the power of Augment's agent and context engine into your terminal"; | |
| homepage = "https://docs.augmentcode.com/cli"; | |
| license = lib.licenses.unfree; | |
| maintainers = with lib.maintainers; [ ]; | |
| platforms = lib.platforms.all; | |
| mainProgram = "auggie"; | |
| }; | |
| }; | |
| in | |
| { | |
| options.programs.auggie.enable = lib.mkEnableOption ("the Auggie CLI tool"); | |
| config = lib.mkIf config.programs.auggie.enable { | |
| environment.systemPackages = [ auggie-pkg ]; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment