overlays/cross: tangram: document one route to upstreaming

This commit is contained in:
2025-05-02 07:01:02 +00:00
parent 9e199a9f74
commit 5e68fe2df6

View File

@@ -759,7 +759,12 @@ in with final; {
# 2024/11/19: upstreaming is unblocked
tangram = prev.tangram.overrideAttrs (upstream: {
# gsjpack has a shebang for the host gjs. patchShebangs --build doesn't fix that: just manually specify the build gjs
# gsjpack has a shebang for the host gjs. patchShebangs --build doesn't fix that: just manually specify the build gjs.
# the proper way to patch this for nixpkgs is:
# 1. split `gjspack` into its own package.
# - right now it's a submodule of all of sonnyp's repos,
# and each nix package re-builds it (forge-sparks, junction, tangram).
# 2. wrap `gjspack` the same way i did blueprint-compiler, and put it in nativeBuildInputs
postPatch = let
gjspack' = buildPackages.writeShellScriptBin "gjspack" ''
export GI_TYPELIB_PATH=${typelibPath [ buildPackages.glib ]}:$GI_TYPELIB_PATH