mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
fix nix package and add ci test for nix package build
This commit is contained in:
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -138,6 +138,9 @@ jobs:
|
|||||||
- name: Test Dynamic Build
|
- name: Test Dynamic Build
|
||||||
run: nix develop -c zig build -Dstatic=false
|
run: nix develop -c zig build -Dstatic=false
|
||||||
|
|
||||||
|
- name: Test NixOS package build
|
||||||
|
run: nix build .#ghostty
|
||||||
|
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -138,11 +138,17 @@ in
|
|||||||
else "$out/share/terminfo"
|
else "$out/share/terminfo"
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p $terminfo/share
|
mkdir -p "$out/nix-support"
|
||||||
cp -r "$terminfo_src" $terminfo/share/terminfo
|
|
||||||
|
|
||||||
mkdir -p $shell_integration
|
mkdir -p "$terminfo/share"
|
||||||
cp -r $out/share/shell-integration $shell_integration/shell-integration
|
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; {
|
meta = with lib; {
|
||||||
|
Reference in New Issue
Block a user