fix nix package and add ci test for nix package build

This commit is contained in:
Jeffrey C. Ollie
2023-12-22 13:43:06 -06:00
parent 4525be9c57
commit a995b6dbb0
2 changed files with 13 additions and 4 deletions

View File

@ -138,6 +138,9 @@ jobs:
- name: Test Dynamic Build
run: nix develop -c zig build -Dstatic=false
- name: Test NixOS package build
run: nix build .#ghostty
prettier:
runs-on: ubuntu-latest
steps:

View File

@ -138,11 +138,17 @@ in
else "$out/share/terminfo"
}
mkdir -p $terminfo/share
cp -r "$terminfo_src" $terminfo/share/terminfo
mkdir -p "$out/nix-support"
mkdir -p $shell_integration
cp -r $out/share/shell-integration $shell_integration/shell-integration
mkdir -p "$terminfo/share"
mv "$terminfo_src" "$terminfo/share/terminfo"
ln -sf "$terminfo/share/terminfo" "$terminfo_src"
echo "$terminfo" >> "$out/nix-support/propagated-user-env-packages"
mkdir -p "$shell_integration"
mv "$out/share/ghostty/shell-integration" "$shell_integration/shell-integration"
ln -sf "$shell_integration/shell-integration" "$out/share/ghostty/shell-integration"
echo "$shell_integration" >> "$out/nix-support/propagated-user-env-packages"
'';
meta = with lib; {