Re: packaging of nix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

At the moment, it's not possible to build a NixOS image that adheres to FHS. Therefore, we can either

1. Add the FHS support to NixOS, which makes the whole thing about using NixOS moot. BUT, maybe we can hack our way around it like so? ([snippet source](https://github.com/balsoft/nixos-fhs-compat/blob/7a94f4c372e209d6db6bc92dc1c3559a2b27c20e/modules/fhs.nix#L21-L34))
```nix
config = lib.mkIf config.environment.fhs.enable {
  systemd.tmpfiles.rules = lib.optionals config.environment.fhs.linkExes [
    "L+ /bin     - - - - /run/current-system/sw/bin"
    "L+ /sbin    - - - - /run/current-system/sw/bin"
    "L+ /usr/bin - - - - /run/current-system/sw/bin"
  ] ++ lib.optionals config.environment.fhs.linkLibs ([
    "L+ /lib     - - - - /etc/lsb/lib"
    "L+ /lib64   - - - - /etc/lsb/lib"
    "L+ /usr/lib - - - - /etc/lsb/lib"
  ]);
  environment.sessionVariables.LD_LIBRARY_PATH = lib.mkIf config.environment.fhs.linkLibs (lib.mkForce "/lib");
  system.activationScripts.binsh = lib.mkIf config.environment.fhs.linkExes (lib.mkForce "");
  system.activationScripts.usrbinenv = lib.mkIf config.environment.fhs.linkExes (lib.mkForce "");
};
```

2. Add non-FHS support to mkosi, which--if done correctly--might help with Guix too. This is just a thought, since I'm not sure how to approach this.

About Nix (the package manager), I would love to help with that, since most of the folks that want to try Nix might do a `sudo dnf install nix`. I looked at your COPR and noticed the dist-git repo. Since I'm very new to the dist-git workflow, can you point me to the actual git repo for it? I'm looking for _unresolved_ issues that you (and other testers) have documented so far in the issue tracker.

I'm dogfooding myself with Fedora on the Orange Pi 5 (custom image I built for myself) to improve the AArch64 experience and would love to report back with generic/arm-specific issues!
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux