Currently, the handy time tracker arbtt fails to build. This is because it requires that the Haskell package X11 was built with the libXScrnSaver system library, which is an optional dependency of the X11 package. arbtt itself doesn't require libXScrnSaver.
I'll gladly prepare a pull request to solve this issue, however I don't know the correct starting point. I can easily fix the problem locally by adding libXScrnSaver to the compiledWithXScreenSaver section of the X11 package in pkgs/development/haskell-modules/hackage-packages.nix, but this file is auto-generated and therefore shouldn't be touched. Any pointers to the correct solution will be greatly appreciated and will hopefully result in a pull request solving this issue. :-)
Try to build arbtt using nix-shell -p haskellPackages.arbtt. Depending on when you try to reproduce, you might run into a unrelated problem pertaining a dependency problem with bytestring-progress and time. This unrelated problem is already being fixed (#33373).
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
"x86_64-linux"Linux 4.14.7, NixOS, 18.03pre124015.f59a0f7f1a6 (Impala)yesyesnix-env (Nix) 1.11.16"nixos-18.03pre124015.f59a0f7f1a6"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgsI notice that work is in progress to automate the dependency into the hackage packageset, so this problem should resolve. Until then, and if you bump into something similar another time, here's a quick way to work around it.
nix-shell -p 'haskellPackages.arbtt.override (oa: { X11 = haskell.lib.addExtraLibrary haskellPackages.X11 xorg.libXScrnSaver; })'
The WIP is merged, but for me arbtt doesn't build yet
It fails even with the workaround
Setup: Encountered missing dependencies:
aeson >=0.10 && <1.3, exceptions ==0.8.*, tasty >=0.7 && <1.1
@nico202 That is a different issue of version bounds that don't match our package set. On current nixos-unstable, this particular problem is resolved. With nixpkgs corresponding to 7db611f, this builds:
nix-build -E 'with import <nixpkgs> {}; haskell.lib.doJailbreak haskellPackages.arbtt'
Most helpful comment
@nico202 That is a different issue of version bounds that don't match our package set. On current nixos-unstable, this particular problem is resolved. With nixpkgs corresponding to 7db611f, this builds: