mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #1059 from jcollie/nix-subpackages
Add "terminfo" and "shell_integration" subpackages to the Nix package
This commit is contained in:
@ -125,7 +125,21 @@ in stdenv.mkDerivation (finalAttrs: {
|
|||||||
chmod u+rwX -R $ZIG_GLOBAL_CACHE_DIR
|
chmod u+rwX -R $ZIG_GLOBAL_CACHE_DIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" "terminfo" "shell_integration" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
terminfo_src=${
|
||||||
|
if stdenv.isDarwin
|
||||||
|
then ''"$out/Applications/Ghostty.app/Contents/Resources/terminfo"''
|
||||||
|
else "$out/share/terminfo"
|
||||||
|
}
|
||||||
|
|
||||||
|
mkdir -p $terminfo/share
|
||||||
|
cp -r "$terminfo_src" $terminfo/share/terminfo
|
||||||
|
|
||||||
|
mkdir -p $shell_integration
|
||||||
|
cp -r $out/share/shell-integration $shell_integration/shell-integration
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mitchellh/ghostty";
|
homepage = "https://github.com/mitchellh/ghostty";
|
||||||
|
Reference in New Issue
Block a user