Skip to content

Commit ceafed9

Browse files
committed
nix: add meta attribute and copy only runtime files in installPhase
- Add meta block with description, homepage, MIT license, mainProgram, and platforms.unix to packages.default - Replace `cp -r *` with explicit copies of git-ai, scripts/, and templates/ to exclude tests from the Nix package
1 parent 3044329 commit ceafed9

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

flake.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,21 @@
2828

2929
installPhase = ''
3030
mkdir -p $out/share/git-ai $out/bin
31-
cp -r * $out/share/git-ai/
31+
cp git-ai $out/share/git-ai/
32+
cp -r scripts templates $out/share/git-ai/
3233
chmod +x $out/share/git-ai/git-ai
3334
makeWrapper $out/share/git-ai/git-ai $out/bin/git-ai \
3435
--prefix PATH : ${pkgs.lib.makeBinPath runtimeDeps}
3536
'';
37+
38+
meta = with pkgs.lib; {
39+
description = "AI-powered git commit message generator using Claude";
40+
homepage = "https://github.com/git-extensions/git-ai";
41+
license = licenses.mit;
42+
maintainers = [ ];
43+
mainProgram = "git-ai";
44+
platforms = platforms.unix;
45+
};
3646
};
3747

3848
devShells.default = pkgs.mkShell {

0 commit comments

Comments
 (0)