nix: update zigCacheHash, mention that building pkg requires src

This updates the zigCacheHash and just adds a note mentioning that using
the package will require you to rebuild LLVM 17 and Zig, and directs
people to use the devShell until this is resolved.

This is likely good advice for most people until such time that both are
in nixpkgs (or at least LLVM 17 as it's by far the bigger culprit here).
This commit is contained in:
Chris Marchesi
2023-11-21 15:59:24 -08:00
parent b022816275
commit 01663c8b29
2 changed files with 17 additions and 1 deletions

View File

@ -53,6 +53,15 @@
let pkgs = import nixpkgs { inherit overlays system; }; let pkgs = import nixpkgs { inherit overlays system; };
in rec { in rec {
devShell = pkgs.devShell; devShell = pkgs.devShell;
# NOTE: using packages.ghostty right out of the flake currently
# requires a build of LLVM 17 and Zig master from source. This will
# take quite a bit of time. Until LLVM 17 and an upcoming Zig 0.12 are
# up in nixpkgs, most folks will want to continue to use the devShell
# and the instructions found at:
#
# https://github.com/mitchellh/ghostty/tree/main#developing-ghostty
#
packages.ghostty = pkgs.ghostty; packages.ghostty = pkgs.ghostty;
defaultPackage = packages.ghostty; defaultPackage = packages.ghostty;
} }

View File

@ -1,3 +1,10 @@
# NOTE: using this derivation right out of the flake currently requires a build
# of LLVM 17 and Zig master from source. This will take quite a bit of time.
# Until LLVM 17 and an upcoming Zig 0.12 are up in nixpkgs, most folks will
# want to continue to use the devShell and the instructions found at:
#
# https://github.com/mitchellh/ghostty/tree/main#developing-ghostty
#
{ lib { lib
, stdenv , stdenv
@ -50,7 +57,7 @@ let
# (It's also possible that you might see a hash mismatch - without the # (It's also possible that you might see a hash mismatch - without the
# network errors - if you don't have a previous instance of the cache # network errors - if you don't have a previous instance of the cache
# derivation in your store already. If so, just update the value as above.) # derivation in your store already. If so, just update the value as above.)
zigCacheHash = "sha256-nfvrGL7CMb8sr9gFhU5GVkN5H+hIxNzMPr2760rV2BM="; zigCacheHash = "sha256-/6XhZq5NYWbHhg0yQ9iT/6oGewsurIpeGNJyNT+E6CQ=";
zigCache = src: stdenv.mkDerivation { zigCache = src: stdenv.mkDerivation {
inherit src; inherit src;