Tup

From NixOS Wiki
Revision as of 01:18, 25 January 2021 by imported>Sheenobu (Add page about using Tup.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

From the tup manual: "Tup is a file-based build system".

Known Issues

mount does not unmount

Tup can either not find fusermount OR the fusermount that tup finds is not setuid. Github issue: (107516)[1].

pkg-config can not find my packages

When using nix-shell, pkg-config, and tup; pkg-config calls via tup do not find any packages.

You must add export lines to your tupfile that correspond to the variables set by NixOS pkg-config:

  export PKG_CONFIG_PATH
  export PKG_CONFIG_PATH_FOR_TARGET
  export PKG_CONFIG_FOR_TARGET

You also have to export NIX_PKG_CONFIG* variables, which can change based on platform:

 export NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu

You can verify this by adding : |> pkg-config --list-all > %o |> pkg-list.txt into your Tupfile and seeing which libraries are available via pkg-config.