-
Notifications
You must be signed in to change notification settings - Fork 137
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
Taffybar fails to build in nixpackages #298
Comments
@PierreR haskell-gi does work in ghc-8.2.x . Overloading is broken, but I was careful to avoid overloading. 1.0.2 has an important memory leak bug fix, but otherwise no changes in functionality. It was necessary to use gi-gtk to solve the issue, so I didn't have much choice in the matter, but I still think a point release version bump was the correct move here, since the changes are not backwards incompatible in any way, and no new functionality was introduced. |
Are you sure about this? Can you show me the failing build log. I literally just built master with 8.2.2 on my machine. |
@PierreR IF it really is the case that this fails to build in nix os (using cabal/nix) why not just use stack to build, which will almost certainly work. |
@PierreR See my comment here: I think you may have misidentified the cause of the failed build. |
@IvanMalison Thanks for your input. The |
I've submitted haskell-gi/haskell-gi#172 and NixOS/cabal2nix#353. I'm not sure which is the appropriate place to make the change but either should work. Both are better than changes directly in nixpkgs. |
After getting past haskell-gi, we hit the command line argument limit known issue. |
I can get past that problem with: haskellPackages.taffybar.overrideDerivation (drv: { strictDeps = true; }) But there's yet another problem:
|
Which is because that file isn't in the Hackage source! https://hackage.haskell.org/package/taffybar-2.1.0/src/ |
#363 already fixed, awaiting a release. |
@puffnfresh Just published a new release |
@puffnfresh Any idea how I might leverage strictDeps to fix the stack build, which seems to run in to the same issue? |
@IvanMalison no sorry, I don't even understand |
@puffnfresh Hmm I'm actually in the process of migrating to nixOS from arch right now, but I can't get taffybar working at all. Can you share your config maybe? |
I've got taffybar in my systemPackages: And in my XMonad extraPackages: Then some Taffybar stuff somewhere in my xmonad.hs |
@puffnfresh I'm not seeing where you used the |
@IvanMalison I'm currently running something like: {
nixpkgs.config = {
packageOverrides = super: let self = super.pkgs; in {
haskellPackages = super.haskellPackages.override {
overrides = self': super': {
gi-dbusmenugtk3 = self.haskell.lib.addPkgconfigDepend super'.gi-dbusmenugtk3 self.gtk3;
taffybar = super'.taffybar.overrideDerivation (drv: {
strictDeps = true;
src = self.fetchFromGitHub {
owner = "taffybar";
repo = "taffybar";
rev = "v2.1.1";
sha256 = "12g9i0wbh4i66vjhwzcawb27r9pm44z3la4693s6j21cig521dqq";
};
});
};
};
};
};
} From nixpkgs master. I've had to work around a few other bugs with master, but this might work for you! |
@puffnfresh ah I see, you are installing form nixpkgs master. The strict deps option hasn't even appreared in the unstable channel yet, and I'm not sure I want to switch to using the git master. I suppose it is worth a shot though. |
@IvanMalison FWIW you can keep your system on the stable channel and pin to a precise nixpkgs commit to build taffybar. That's what I am doing. |
@PierreR Cool. I'm new to nix. How exactly do you do that? |
@PierreR Found some info here: https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs |
@IvanMalison Here is some extra info from my note: http://pierrer.github.io/notebook/#_nix (search for "Pinned a version of nixpkgs"). with recent version of nix |
See my comment NixOS/nixpkgs#40013 (comment). I suspect that the latest commits that I have pushed may be getting us close to a solution! |
@IvanMalison I have managed to get
But I still need to adjust the default UI which is really awful for me. I don't know why it is suddenly so big ;-) |
Are you using the default config? Looks like you have some bar padding. You can turn that off by adjusting the barPadding value in your config. |
The lastest nixpkgs is building |
The introduction of
haskell-gi
in v1.0.2 has been a huge change. Indeedhaskell-gi
does not work inghc-8.2.x
due to apparently a regression bug in ghc.IMHO this kind of change need a version bump far greater than the mere third digit ... In nixos for instance,
taffybar
can't be built anymore (as the current default is still ghc-8.2.x).I guess it is now too late but maybe for next time it would better to mark such changes with a second digit version bump (
1.1.x
in this case). On the other hand, using the latest digit forces everyone to update asap but well.The text was updated successfully, but these errors were encountered: