mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
tmuxai
This commit is contained in:
parent
013b916c6e
commit
f32e5a8f8e
2 changed files with 104 additions and 12 deletions
85
log2.txt
Normal file
85
log2.txt
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
Running phase: unpackPhase
|
||||
@nix { "action": "setPhase", "phase": "unpackPhase" }
|
||||
unpacking source archive /nix/store/0jjf6n7fklyd9rmrg93ayza3b5xwsm4k-tmuxai_Linux_amd64.tar.gz
|
||||
source root is .
|
||||
setting SOURCE_DATE_EPOCH to timestamp 1746466346 of file ./tmuxai
|
||||
Running phase: patchPhase
|
||||
@nix { "action": "setPhase", "phase": "patchPhase" }
|
||||
Running phase: updateAutotoolsGnuConfigScriptsPhase
|
||||
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
|
||||
Running phase: installPhase
|
||||
@nix { "action": "setPhase", "phase": "installPhase" }
|
||||
Running phase: fixupPhase
|
||||
@nix { "action": "setPhase", "phase": "fixupPhase" }
|
||||
shrinking RPATHs of ELF executables and libraries in /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3
|
||||
shrinking /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3/bin/tmuxai
|
||||
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
|
||||
checking for references to /build/ in /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3...
|
||||
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
|
||||
patching script interpreter paths in /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3
|
||||
stripping (with command strip and flags -S -p) in /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3/bin
|
||||
automatically fixing dependencies for ELF files
|
||||
{'append_rpaths': [],
|
||||
'extra_args': [],
|
||||
'ignore_missing': [],
|
||||
'keep_libc': False,
|
||||
'libs': [PosixPath('/nix/store/xswp2lh2f3h6g9h7g52awd15jv0x671y-auto-patchelf-hook/lib'),
|
||||
PosixPath('/nix/store/2c1nks2bdsdkb1y631pfzfp216jhyfzm-auto-patchelf-0-unstable-2024-08-14/lib'),
|
||||
PosixPath('/nix/store/99j1fr95xf5xkqgpw5kjwx484118a5xd-binutils-wrapper-2.43.1/lib'),
|
||||
PosixPath('/nix/store/17qh4fahxj1b8asyfy2nz7cxyr2z2ybq-make-shell-wrapper-hook/lib'),
|
||||
PosixPath('/nix/store/sq820gqal9crvnhqs1y6as0pf39smdbx-die-hook/lib'),
|
||||
PosixPath('/nix/store/q3hmrfgjkba7vqyrvr1nlsaiymy1ma5w-patchelf-0.15.0/lib'),
|
||||
PosixPath('/nix/store/hi361xvwkvh3nrqgr6bzrnr39rw2g6yp-update-autotools-gnu-config-scripts-hook/lib'),
|
||||
PosixPath('/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh/lib'),
|
||||
PosixPath('/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh/lib'),
|
||||
PosixPath('/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh/lib'),
|
||||
PosixPath('/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh/lib'),
|
||||
PosixPath('/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh/lib'),
|
||||
PosixPath('/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh/lib'),
|
||||
PosixPath('/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh/lib'),
|
||||
PosixPath('/nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh/lib'),
|
||||
PosixPath('/nix/store/12lvf0c7xric9cny7slvf9cmhypl1p67-patch-shebangs.sh/lib'),
|
||||
PosixPath('/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh/lib'),
|
||||
PosixPath('/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh/lib'),
|
||||
PosixPath('/nix/store/aazf105snicrlvyzzbdj85sx4179rpfp-set-source-date-epoch-to-latest.sh/lib'),
|
||||
PosixPath('/nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh/lib'),
|
||||
PosixPath('/nix/store/mzfk1sdv6bxvdh9slvddpj734ck99idi-gcc-wrapper-13.3.0/lib'),
|
||||
PosixPath('/nix/store/kmaz78bn767ffazkpf8zbq3plnh45nfm-binutils-wrapper-2.43.1/lib'),
|
||||
PosixPath('/nix/store/rvdy4vnkwfk65p104q1bdpslgrjl7yp4-glibc-2.40-66-dev/lib'),
|
||||
PosixPath('/nix/store/387k8pgbh1b3skack03myc2phxnc7b5z-glibc-2.40-66-bin/lib'),
|
||||
PosixPath('/nix/store/p9kdj55g5l39nbrxpjyz5wc1m0s7rzsx-glibc-2.40-66/lib'),
|
||||
PosixPath('/nix/store/xswp2lh2f3h6g9h7g52awd15jv0x671y-auto-patchelf-hook/lib'),
|
||||
PosixPath('/nix/store/2c1nks2bdsdkb1y631pfzfp216jhyfzm-auto-patchelf-0-unstable-2024-08-14/lib'),
|
||||
PosixPath('/nix/store/99j1fr95xf5xkqgpw5kjwx484118a5xd-binutils-wrapper-2.43.1/lib'),
|
||||
PosixPath('/nix/store/17qh4fahxj1b8asyfy2nz7cxyr2z2ybq-make-shell-wrapper-hook/lib'),
|
||||
PosixPath('/nix/store/sq820gqal9crvnhqs1y6as0pf39smdbx-die-hook/lib'),
|
||||
PosixPath('/nix/store/q3hmrfgjkba7vqyrvr1nlsaiymy1ma5w-patchelf-0.15.0/lib'),
|
||||
PosixPath('/nix/store/hi361xvwkvh3nrqgr6bzrnr39rw2g6yp-update-autotools-gnu-config-scripts-hook/lib'),
|
||||
PosixPath('/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh/lib'),
|
||||
PosixPath('/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh/lib'),
|
||||
PosixPath('/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh/lib'),
|
||||
PosixPath('/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh/lib'),
|
||||
PosixPath('/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh/lib'),
|
||||
PosixPath('/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh/lib'),
|
||||
PosixPath('/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh/lib'),
|
||||
PosixPath('/nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh/lib'),
|
||||
PosixPath('/nix/store/12lvf0c7xric9cny7slvf9cmhypl1p67-patch-shebangs.sh/lib'),
|
||||
PosixPath('/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh/lib'),
|
||||
PosixPath('/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh/lib'),
|
||||
PosixPath('/nix/store/aazf105snicrlvyzzbdj85sx4179rpfp-set-source-date-epoch-to-latest.sh/lib'),
|
||||
PosixPath('/nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh/lib'),
|
||||
PosixPath('/nix/store/mzfk1sdv6bxvdh9slvddpj734ck99idi-gcc-wrapper-13.3.0/lib'),
|
||||
PosixPath('/nix/store/kmaz78bn767ffazkpf8zbq3plnh45nfm-binutils-wrapper-2.43.1/lib'),
|
||||
PosixPath('/nix/store/rvdy4vnkwfk65p104q1bdpslgrjl7yp4-glibc-2.40-66-dev/lib'),
|
||||
PosixPath('/nix/store/387k8pgbh1b3skack03myc2phxnc7b5z-glibc-2.40-66-bin/lib'),
|
||||
PosixPath('/nix/store/p9kdj55g5l39nbrxpjyz5wc1m0s7rzsx-glibc-2.40-66/lib')],
|
||||
'paths': [PosixPath('/nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3')],
|
||||
'recursive': True,
|
||||
'runtime_dependencies': []}
|
||||
skipping /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3/bin/tmuxai because it is statically linked
|
||||
auto-patchelf: 0 dependencies could not be satisfied
|
||||
Running phase: installCheckPhase
|
||||
@nix { "action": "setPhase", "phase": "installCheckPhase" }
|
||||
--- Starting installCheckPhase ---
|
||||
Set temporary HOME to /build/tmp.313O0MBe6F for install check.
|
||||
Attempting to run: /nix/store/0cxjiap61g0rk3i90zwk0fw334fqmk6r-tmuxai-1.0.3/bin/tmuxai version
|
||||
|
|
@ -5,6 +5,8 @@
|
|||
, autoPatchelfHook
|
||||
, makeWrapper
|
||||
, glibc
|
||||
# We don't need to list tmux here because the --version flag should avoid calling it.
|
||||
# If the program *insisted* on tmux even for --version, we'd need to wrap it.
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
|
@ -17,11 +19,11 @@ stdenv.mkDerivation rec {
|
|||
"tmuxai_Linux_arm64.tar.gz"
|
||||
else throw "Unsupported platform for tmuxai precompiled binary: ${stdenv.hostPlatform.system}";
|
||||
|
||||
# These MUST be the SRI formatted hashes obtained from nix-prefetch-url
|
||||
# Use the SRI formatted hashes
|
||||
srcHash = if stdenv.isLinux && stdenv.hostPlatform.isx86_64 then
|
||||
"sha256-kWs5Cig9QV+dMD/XBcwWJALtBx1hbb52IOpoO0nCik4=" # SRI for Linux amd64
|
||||
"sha256-kWs5Cig9QV+dMD/XBcwWJA congenial/Bq29hA6mhzSciko=" # Your provided correct SRI hash
|
||||
else if stdenv.isLinux && stdenv.hostPlatform.isAarch64 then
|
||||
"sha256-WHcM8fmbrfBjXn+a0F+Md3lJVfSApSjpPoBq80VRUs=" # SRI for Linux arm64
|
||||
"sha256-WHcM8fmbrfBjXn+a0F+Md3lJVfSApSjpPoBq80VRUs=" # SRI for Linux arm64 (example)
|
||||
else throw "Unsupported platform for tmuxai precompiled binary hash: ${stdenv.hostPlatform.system}";
|
||||
|
||||
srcFetching = fetchurl {
|
||||
|
|
@ -31,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = srcFetching;
|
||||
|
||||
sourceRoot = "."; # The binary is directly in the archive after extraction
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
|
|
@ -57,23 +59,28 @@ stdenv.mkDerivation rec {
|
|||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
echo "--- Starting installCheckPhase ---"
|
||||
export HOME=$(mktemp -d)
|
||||
export HOME=$(mktemp -d) # For logger, though --version should exit before full init
|
||||
echo "Set temporary HOME to $HOME for install check."
|
||||
|
||||
echo "Attempting to run: $out/bin/tmuxai version"
|
||||
# Try to capture output and exit code separately
|
||||
VERSION_OUTPUT=$($out/bin/tmuxai version 2>&1)
|
||||
# Use --version flag which should exit before main tmux-dependent logic
|
||||
echo "Attempting to run: $out/bin/tmuxai --version"
|
||||
VERSION_OUTPUT=$($out/bin/tmuxai --version 2>&1) # <--- CHANGED to --version
|
||||
EXIT_CODE=$?
|
||||
echo "EXIT_CODE of 'tmuxai version': $EXIT_CODE"
|
||||
echo "OUTPUT of 'tmuxai version':"
|
||||
echo "EXIT_CODE of 'tmuxai --version': $EXIT_CODE"
|
||||
echo "OUTPUT of 'tmuxai --version':"
|
||||
echo "$VERSION_OUTPUT"
|
||||
echo "--- End of 'tmuxai version' output ---"
|
||||
echo "--- End of 'tmuxai --version' output ---"
|
||||
|
||||
if [ "$EXIT_CODE" -ne 0 ]; then
|
||||
echo "Error: 'tmuxai version' exited with code $EXIT_CODE."
|
||||
echo "Error: 'tmuxai --version' exited with code $EXIT_CODE."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# The output of `tmuxai --version` is:
|
||||
# tmuxai version: vX.Y.Z
|
||||
# commit: <hash>
|
||||
# build date: <date>
|
||||
# So we grep for the first line.
|
||||
echo "$VERSION_OUTPUT" | grep "tmuxai version: v${version}"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: Version string 'tmuxai version: v${version}' not found in output."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue