Skip to content

Commit

Permalink
ghostty: 1.0.0 -> 1.0.1 (#369782)
Browse files Browse the repository at this point in the history
(cherry picked from commit c44821d)
  • Loading branch information
jcollie authored and getchoo committed Jan 1, 2025
1 parent f67d319 commit f7b1196
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
14 changes: 7 additions & 7 deletions pkgs/by-name/gh/ghostty/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 6 additions & 12 deletions pkgs/by-name/gh/ghostty/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ in

stdenv.mkDerivation (finalAttrs: {
pname = "ghostty";
version = "1.0.0";

version = "1.0.1";
outputs = [
"out"
"man"
Expand All @@ -58,15 +57,9 @@ stdenv.mkDerivation (finalAttrs: {
owner = "ghostty-org";
repo = "ghostty";
tag = "v${finalAttrs.version}";
hash = "sha256-AHI1Z4mfgXkNwQA8xYq4tS0/BARbHL7gQUT41vCxQTM=";
hash = "sha256-BiXFNeoL+BYpiqzCuDIrZGQ6JVI8cBOXerJH48CbnxU=";
};

# Avoid using runtime hacks to help find X11
postPatch = lib.optionalString (appRuntime == "gtk") ''
substituteInPlace src/apprt/gtk/x11.zig \
--replace-warn 'std.DynLib.open("libX11.so");' 'std.DynLib.open("${lib.getLib libX11}/lib/libX11.so");'
'';

deps = callPackage ./deps.nix {
name = "${finalAttrs.pname}-cache-${finalAttrs.version}";
};
Expand Down Expand Up @@ -118,8 +111,7 @@ stdenv.mkDerivation (finalAttrs: {

zigCheckFlags = finalAttrs.zigBuildFlags;

# Unit tests currently fail inside the sandbox
doCheck = false;
doCheck = true;

/**
Ghostty really likes all of it's resources to be in the same directory, so link them back after we split them
Expand Down Expand Up @@ -186,7 +178,9 @@ stdenv.mkDerivation (finalAttrs: {
'';
homepage = "https://ghostty.org/";
downloadPage = "https://ghostty.org/download";

changelog = "https://ghostty.org/docs/install/release-notes/${
builtins.replaceStrings [ "." ] [ "-" ] finalAttrs.version
}";
license = lib.licenses.mit;
mainProgram = "ghostty";
maintainers = with lib.maintainers; [
Expand Down

0 comments on commit f7b1196

Please sign in to comment.