Fixes:
/nix/store/hyk3aky49zm2chq5cwclrsm56iqwfzwj-unison-2.51.2/bin/unison-fsmonitor: line 2: grep: command not found
Happens when running unison in a systemd service.
Fixes#61867 and #61505, bumps the ocaml version unison is built
against to 4.08. The patches included here appear in the trunk version
of unison, but were not backported to 2.51.2.
According to https://repology.org/repository/nix_unstable/problems, we have a
lot of packages that have http links that redirect to https as their homepage.
This commit updates all these packages to use the https links as their
homepage.
The following script was used to make these updates:
```
curl https://repology.org/api/v1/repository/nix_unstable/problems \
| jq '.[] | .problem' -r \
| rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \
| sort | uniq > script.sed
find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```
If `UISTYLE` is not specified, Unison tries to auto-detect the UI style
based on the available environment. On macOS this apparently means using
`UISTYLE=mac`, it can't actually build this way in Nix.
I switch off the build of ocaml compilers to native code, and add
a 'passthru' that unison can use to see if it needs to call the native
or the bytecode compiler.
Unison's wrapper was generating errors by calling xset even if DISPLAY
was not set. This was especially noticeable when connecting to a
remote server to sync with.
Fix this by only setting the font path if DISPLAY is set to something.
svn path=/nixpkgs/trunk/; revision=21821
This is so that the Unison wrapper can be generated with
makeWrapper.
* Use makeWrapper as a buildInput everywhere.
* Updated BitTorrent, cvs2svn.
svn path=/nixpkgs/trunk/; revision=10213
- unison uses a wrapper script to add font-schumacher-misc to the local X font path
if the font isn't already present; this is necessary for it to work, but not terribly
nice ...
* lablgtk is a dependency of unison
- handling of library dirs with ocaml is a hack so far; in principle, ocaml needs
a general setup for library dirs like ghc
svn path=/nixpkgs/trunk/; revision=9094