Skip to content

helix-gpt: 0.15 -> 0.25 - #286046

Merged
happysalada merged 1 commit into
NixOS:masterfrom
happysalada:update_helix_gpt
Feb 3, 2024
Merged

happysalada merged 1 commit into
NixOS:masterfrom
happysalada:update_helix_gpt

Conversation

@happysalada

Copy link
Copy Markdown
Contributor

Description of changes

just an update to latest and addition of the aarch64-darwin platform.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@happysalada

Copy link
Copy Markdown
Contributor Author

@jpaju do you want to help with the aarch64-darwin hash ?
(I can also wait for the ci to give me the correct hash upon failure, but if you have time).

@happysalada happysalada mentioned this pull request Feb 3, 2024
13 tasks
@jpaju

jpaju commented Feb 3, 2024

Copy link
Copy Markdown
Member

Sure, I can do that! To be honest, I'm not entirely sure how to get the hash. Can you give some advice on that? 😇

@happysalada

Copy link
Copy Markdown
Contributor Author

Of course !
Checkout this branch locally, and try to build helix-gpt on a darwin machine. It will complain of a sha mismatch. The first sha will be aaaaaa , i need the second sha.

Let me know if you need help with any of the details.

Another way could be to run nixpkgs review and paste the failure output, this works as well.

@jpaju

jpaju commented Feb 3, 2024 •

Copy link
Copy Markdown
Member

Alright, I cloned the repo and checked out this branch (on M2 Pro Macbook). Then ran:

$ cd pkgs/by-name/he/helix-gpt/
$ nix-build -E 'with import <nixpkgs> {}; callPackage ./package.nix {}'

The output was:

warning: found empty hash, assuming 'sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='
these 3 derivations will be built:
  /nix/store/dmrck22rj9wd1snq955knff12msc8qb7-source.drv
  /nix/store/2yzvlhplkgsfv29brpc6gfin1br0ay8q-helix-gpt-node_modules-0.25.drv
  /nix/store/s5m9sa2w105j54rcm7j6iww12m4cq6wh-helix-gpt-0.25.drv

...

error: hash mismatch in fixed-output derivation '/nix/store/2yzvlhplkgsfv29brpc6gfin1br0ay8q-helix-gpt-node_modules-0.25.drv':
         specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
            got:    sha256-y8ETFWSg+czhyslKc7muTFRu2q+7eeVyZ7Tea/VCUWY=
error: 1 dependencies of derivation '/nix/store/s5m9sa2w105j54rcm7j6iww12m4cq6wh-helix-gpt-0.25.drv' failed to build

So the hash is y8ETFWSg+czhyslKc7muTFRu2q+7eeVyZ7Tea/VCUWY=, right?

EDIT: it definitely is because the build succeeds when this hash is set in pin.json

@happysalada

happysalada commented Feb 3, 2024 •

Copy link
Copy Markdown
Contributor Author

oh very interesting, the hash is the same as for x86_64-darwin, that should make updates much easier.
I've made the fix, you can test if you want (but it should be fine).
Thanks a lot for this!

@jpaju

jpaju commented Feb 3, 2024 •

Copy link
Copy Markdown
Member

I pulled the updates and it works (at least on my machine 😄). Identical hashes are actually quite interesting, maybe Bun builds binaries for Mac that are run with Rosetta on ARM-based machines 🤷

Thanks for publishing the package for my platform as well!

@happysalada

Copy link
Copy Markdown
Contributor Author

Result of nixpkgs-review pr 286046 run on x86_64-linux 1

1 package built:
  • helix-gpt

@happysalada
happysalada merged commit c1ccd24 into NixOS:master Feb 3, 2024
@happysalada
happysalada deleted the update_helix_gpt branch February 3, 2024 14:46
@ofborg ofborg Bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants