Nixpkgs: More specific dependencies for arbtt are needed

Created on 3 Jan 2018  路  4Comments  路  Source: NixOS/nixpkgs

Issue description

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. :-)

Steps to reproduce

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).

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

  • system: "x86_64-linux"
  • host os: Linux 4.14.7, NixOS, 18.03pre124015.f59a0f7f1a6 (Impala)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 1.11.16
  • channels(root): "nixos-18.03pre124015.f59a0f7f1a6"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

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:

nix-build -E 'with import <nixpkgs> {}; haskell.lib.doJailbreak haskellPackages.arbtt'

All 4 comments

I 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'
Was this page helpful?
0 / 5 - 0 ratings

Related issues

retrry picture retrry  路  3Comments

lverns picture lverns  路  3Comments

vaibhavsagar picture vaibhavsagar  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

rzetterberg picture rzetterberg  路  3Comments