Add notes about Nix patch and using compatible Nix version

dblsaiko
Mar 24, 2024, 5:36 PM
WUA27ICQYYPV7OJAEDYJHFTLTXO5JEZFXD733DLCW2ZTVGWHZRCQC

Dependencies

  • [2] ALEHIM7Q Fix plugin path in readme
  • [3] NQT3HEZH Add README.md
  • [4] SNHMHWHL Add reference to nix-extras package
  • [5] ABMNOOZ7 nix.settings instead of nix.options

Change contents

  • edit in README.md at line 19
    [3.525]
    [3.525]
    NB: The fetcher from this plugin does not automatically get used when running
    nix commands (e.g. `nix build`) in a Pijul repository, since this is hardcoded
    for Git and Mercurial in Nix. For this, I have a patch that adds the relevant
    code for Pijul, it's available as
    [nix-pijul](https://git.sr.ht/~dblsaiko/nix-extras/tree/master/item/packages/nix-pijul.nix)
    in my *nix-extras* flake. It replaces the normal Nix installation and can be
    used in addition to this plugin.
  • replacement in README.md at line 35
    [3.540][3.540:599]()
    Add the built pijul.so module to plugin-files in nix.conf.
    [3.540]
    [3.599]
    Add the built pijul.so module to plugin-files in nix.conf. Make sure it is built
    for the Nix version you are using it with.
  • replacement in README.md at line 38
    [3.600][3.600:607]()
    NixOS:
    [3.600]
    [3.607]
    NixOS (with the nix-extras overlay):
  • replacement in README.md at line 41
    [3.615][3.615:617](),[3.617][2.0:78]()
    {
    nix.settings.plugin-files = "${nix-plugin-pijul}/lib/nix/plugins/pijul.so";
    [3.615]
    [3.686]
    {pkgs, config, ...}: {
    nix.settings.plugin-files = "${pkgs.nix-plugin-pijul.override { nix = config.nix.package; }}/lib/nix/plugins/pijul.so";
    # Optional: Use the patched Nix to automatically use Pijul fetcher in local
    # repositories
    nix.package = pkgs.nix-pijul;