New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix OfBorg CI #81334
fix OfBorg CI #81334
Conversation
If this builds, and fixes ofborg eval, I'm pushing to master so i can fix all the broken PR gates |
@peti sorry if this creates some work for you, but I think restoring PR gates is a pretty high priority |
cross reference: koalaman/shellcheck#1778 This should be fixed in next release |
I was working on a patch that looks slightly different (and also enables manpage generation), if you want to lift anything from it before merge: patchdiff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index d0af64c5986..efb6e6d850e 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -634,6 +634,33 @@ self: super: {
'';
});
+ ShellCheck = overrideCabal super.ShellCheck (drv: {
+ buildTools = [ pkgs.pandoc ];
+ patches = [
+ # ShellCheck 0.7.0 is incompatible with Cabal 3.x. Use the patch that
+ # added support to master, remove the broken Setup.hs, and generate
+ # manpages.
+ # https://github.com/koalaman/shellcheck/issues/1778
+ (pkgs.fetchpatch {
+ url =
+ "https://github.com/koalaman/shellcheck/commit/2c026f1ec7c205c731ff2a0ccd85365f37245758.patch";
+ sha256 = "16rscpl8ddly1pzv745wdl3b5m2v5c1yvcbdvzbpmksar7mnqz7h";
+ includes = [ "ShellCheck.cabal" ];
+ })
+ ];
+ postPatch = ''
+ rm Setup.hs
+ '';
+ # fetchpatch cannot create files, so fetch the `manpage` shell script, in
+ # order to generate manpages.
+ postBuild = (pkgs.fetchurl {
+ url =
+ "https://raw.githubusercontent.com/koalaman/shellcheck/2c026f1ec7c205c731ff2a0ccd85365f37245758/manpage";
+ sha256 = "1yg8i4xhkh0nh5m9753lqna93a8irk8azwyl0yjyq1rs72w8zsfr";
+ executable = true;
+ });
+ });
+
# Build the latest git version instead of the official release. This isn't
# ideal, but Chris doesn't seem to make official releases any more.
structured-haskell-mode = overrideCabal super.structured-haskell-mode (drv: { Otherwise, LGTM:
|
I guess I could just do the includes for mine |
@GrahamcOfBorg eval |
well, this is annoying... darwin fails due to large out path EDIT: actually, it was just the warning, the actual error was that stack is marked as broken, but also listed as a required job for release.nix |
128749c
to
31bcae1
Compare
I'll try to fix darwin another time, but the original |
also learned that passing options |
@GrahamcOfBorg eval |
@GrahamcOfBorg build nix-info-tested shellcheck |
|
@GrahamcOfBorg build stack |
sigh....... stack is listed as a necessary build in release.nix for darwin |
@GrahamcOfBorg eval |
I really don't like touching release.nix, but it's odd that stack is only listed in the darwin outputs. All other platforms don't have it. |
@@ -17899,7 +17899,6 @@ self: { | |||
description = "Shell script analysis tool"; | |||
license = stdenv.lib.licenses.gpl3; | |||
hydraPlatforms = stdenv.lib.platforms.none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonringer
I believe this hydraPlatforms =
line has to be removed as well, otherwise hydra won't build this derivation.
However, this line should be removed automatically the next time the haskell packages are updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's probably the proper thing to do to get haskellPackages.ShellCheck, however, I just need it so that pkgs.shellcheck
ran successfully
Motivation for this change
fixes: #81325
EDIT: also, the haskell update also broke stack, which is listed as a necessary package for release.nix
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)