shellcheck: add override for newer version#147780
shellcheck: add override for newer version#147780sternenseemann merged 1 commit intoNixOS:haskell-updatesfrom qowoz:shellcheck
Conversation
There was a problem hiding this comment.
I did this manually, setting doDistribute and regenerating didn't seem to work.
There was a problem hiding this comment.
doDistribute doesn't affect the source, just the evaluation result, what exactly did not work? Changes in hackage-packages.nix will be rolled back.
There was a problem hiding this comment.
doDistributedoesn't affect the source, just the evaluation result, what exactly did not work?
I thought doDistribute would remove hydraPlatforms = lib.platforms.none; but setting it and regenerating didn't produce any changes.
Changes in
hackage-packages.nixwill be rolled back.
Yes, I know. What is the correct way to remove this line?
There was a problem hiding this comment.
Yes, I know. What is the correct way to remove this line?
I think they are non-configurable for the versioned attributes, but doDistribute would achieve the same effect after evaluation. In any case populating hydraPlatforms for this is not strictly necessary, since it is not poisonous: If shellcheck has hydraPlatforms != [] (or unspecified), shellcheck and all its dependencies (including ShellCheck_0_8_0) will be built regardless of their individual hydraPlatforms lists.
There was a problem hiding this comment.
shellcheck inherits meta from ShellCheck_0_8_0 which will include the disabled hydraPlatforms.
There was a problem hiding this comment.
Pushed doDistribute for ShellCheck_0_8_0.
pkgs/top-level/all-packages.nix
Outdated
There was a problem hiding this comment.
I would not recommend overriding in this way, as it is brittle at best because it bypasses the haskellPackages fixpoint.
There was a problem hiding this comment.
Can you suggest an alternative?
There was a problem hiding this comment.
| haskellPackages.ShellCheck = haskellPackages.ShellCheck_0_8_0; | |
| ShellCheck = haskellPackages.ShellCheck_0_8_0; |
Then take ShellCheck as an input instead of haskellPackages in shellcheck/default.nix. It is the only attribute used anyways.
There was a problem hiding this comment.
Seems alright, the shellcheck expression could probably use a refactor, but that can be done another time (by someone else).
There was a problem hiding this comment.
What do you have in mind for a refactor? I'll try to find some time in the next few weeks.
|
@ofborg build shellcheck |
|
Not sure what to do about that? |
|
I think it would probably be easiest to do do |
|
@ofborg build nix-info-tested |
`haskellPackages.ShellCheck` is pinned on stackage.
|
Just realised this isn't already on |
|
@ofborg build shellcheck |
|
Thanks for your help with this @sternenseemann! |
Motivation for this change
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes