-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
haskellPackages.hcoord: fix build #93469
Conversation
@erictapen Thanks for trying to get this fixed. Two things:
|
Right, let's wait a while and see how upstream responds. |
6cd82d7
to
692715d
Compare
@@ -1461,4 +1461,15 @@ self: super: { | |||
}; | |||
}; | |||
|
|||
# Remove when https://github.com/danfran/hcoord/pull/8 is merged and a new | |||
# release is published to Hackage. | |||
hcoord = overrideSrc super.hcoord ({ |
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.
Please don't override the source for the entire package. Instead, please apply the necessary changes as patches to the official release tarball. This approach has the advantage that the patches will fail when a new version comes out and this is a good reminder for us to remove the override.
d5bec9e
to
16bd71b
Compare
Ping? Will you address the comments? |
I adressed your comments and rebased to latest Edit: Also one meta comment: I very much agree with your reasoning about preffering |
src = pkgs.fetchFromGitHub { | ||
owner = "danfran"; | ||
repo = drv.pname; | ||
rev = "v1.0.0.0"; | ||
sha256 = "16a7q2nz0k0z96yyyc9s5pblxaznb9mqj94k8md2a51f36f1vaw4"; | ||
}; |
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.
It would probably be easier to just mark this package as dontCheck
, rather than overriding the upstream source.
The problem with overriding the upstream source is that we will have to remember to undo it at some point. If we don't undo it, we will continue getting the old version.
@cdepillabout Mh I get it. But I don't like disabling tests when they could be easily run. How about this: src = pkgs.fetchFromGitHub {
owner = "danfran";
repo = drv.pname;
rev = "v${drv.version}";
sha256 = "16a7q2nz0k0z96yyyc9s5pblxaznb9mqj94k8md2a51f36f1vaw4";
} By using |
I think this still suffers from the fixed-output derivation problem, and we still don't want to override the source of the upstream tarball.
From your original PR message, it seemed like your reasoning was the following:
The "for some reason" part doesn't sound like a valid reason not to use |
@cdepillabout Please note that I wasn't criticizing your rejection of my change, but the way you communicated it first in #93469 (comment). I force-pushed and addressed your concerns. |
@GrahamcOfBorg build haskellPackages.hcoord |
Increase version bounds for a hcoord dependency [0]. Also disable checks, as upstream doesn't include the necessary files in the release tarball [1]. [0] danfran/hcoord#8 [1] danfran/hcoord#9
@GrahamcOfBorg build haskellPackages.hcoord |
Tested locally, works fin. |
Thx, for the PR! |
danfran/hcoord#8 increases version bounds for hcoord. For some reason the build fails when the change is applied with appendPatch, so let's use my branch. The Git tag says version v1.0.0.0 is the same rev as master, so there should be no difference between my branch and master+appendPatch, but however.
Motivation for this change
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)