The nixpkgs version jotta-cli tarball is missing, and overlays fail to build

My config fails to build since the nixpkgs package refers to a tarball of version 0.15.107955, which no longer exists.

I’ve tried to make an overlay for it by simply copying the package definition and changing the version number (and hash), however I now get an error that patchelf fails:

error: builder for '/nix/store/psdmll5x6lkxx877nygp6rjnxhkz60jh-jotta-cli-0.15.110283.drv' failed with exit code 1;
       last 22 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/l17slqjxha1ha4d1ci3vf31ffjwaxs6m-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > no Makefile or custom buildPhase, doing nothing
       > Running phase: installPhase
       > Running phase: fixupPhase
       > shrinking RPATHs of ELF executables and libraries in /nix/store/dgd7j7ws925q3anaspvr98x7r8f150j3-jotta-cli-0.15.110283
       > shrinking /nix/store/dgd7j7ws925q3anaspvr98x7r8f150j3-jotta-cli-0.15.110283/bin/jotta-cli
       > patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
       > shrinking /nix/store/dgd7j7ws925q3anaspvr98x7r8f150j3-jotta-cli-0.15.110283/bin/jottad
       > patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
       > checking for references to /build/ in /nix/store/dgd7j7ws925q3anaspvr98x7r8f150j3-jotta-cli-0.15.110283...
       > patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
       > patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
       > patching script interpreter paths in /nix/store/dgd7j7ws925q3anaspvr98x7r8f150j3-jotta-cli-0.15.110283
       > stripping (with command strip and flags -S -p) in  /nix/store/dgd7j7ws925q3anaspvr98x7r8f150j3-jotta-cli-0.15.110283/bin
       > patchelf: cannot find section '.interp'. The input file is most likely statically linked
       For full logs, run 'nix log /nix/store/psdmll5x6lkxx877nygp6rjnxhkz60jh-jotta-cli-0.15.110283.drv'.

I get the same error both with 0.16.129390 which is the latest version at the archive page, and 0.15.110283 which is the lowest version number above the missing version 0.15.107955.

Since I don’t want to remove Jottacloud from my PC and I also don’t want to be unable to build my config, what can I do to resolve this issue?

I don’t think I have the skills to make my own package that substantially changes how the package is built and installed, like changing the patchelf stuff.

I’m assuming the tarball for the older version isn’t in your store if it’s trying to download it… If you can’t fix it yourself then at most you can file an issue on the nixpkgs repo and request someone else to fix it.

You would still have to remove it from your config, but you could try some VM or containerisation options in the meantime - distrobox seems to be a common option from what I’ve heard.

1 Like

Thanks for the advice!

The fix got merged just now: jotta-cli: 0.15.107955 -> 0.16.129390 by emaryn · Pull Request #388203 · NixOS/nixpkgs · GitHub

1 Like