Skip to content

serokell-nix: drop dependency#406

Merged
jfly merged 2 commits into
NixOS:masterfrom
jfly:issue-405-drop-serokell-nix
May 25, 2026
Merged

serokell-nix: drop dependency#406
jfly merged 2 commits into
NixOS:masterfrom
jfly:issue-405-drop-serokell-nix

Conversation

@jfly
Copy link
Copy Markdown
Collaborator

@jfly jfly commented May 25, 2026

This fixes #405

Many thanks for Serokell for starting and donating this project!

jfly added 2 commits May 25, 2026 09:51
We recently upgraded our npins schema and upgraded nixpkgs. I didn't
consider that pulling the latest nixpkgs would cause us to pull a newer
version of npins with an even newer schema. So here we go!

To generate this, I ran `npins upgrade`, which told me to run `npins
update --partial` (which had no effect).
This fixes NixOS#405

Many thanks for Serokell for starting and donating this project!
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

Nixpkgs diff

Comment thread main.nix
};
hlint = pkgs.build.haskell.hlint haskellSource;
hlint =
pkgs.runCommand "hlint"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this trivial* enough to justify runCommandLocal?

*and/or fast and/or unique

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know :(. I personally don't like making these decisions, I'd rather nix have its own heuristics for this sort of stuff.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge this as is, but feel free to change it if you want!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runCommandLocal (or passing runLocal = true to runCommandWith) configures preferLocalBuild and allowSubstitutes to instruct nix to skip network requests for remote builders and binary substituters (runCommandWith impl).

Rule of thumb: if the buildscript runs a command that you wouldn't think twice about running locally, because it if fairly quick, then it is probably better to use runCommandLocal to avoid waiting for network requests to binary substituters and remote builders.

Alternatively, if the derivation's inputs (e.g. source files) change so often that it is unlikely there will be a binary cache available, then it may be worth considering runCommandLocal.

@jfly jfly merged commit 408bebf into NixOS:master May 25, 2026
2 checks passed
@jfly jfly deleted the issue-405-drop-serokell-nix branch May 25, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Upgrade to the latest version of serokell-nix

2 participants