Skip to content

Conversation

@vlinkz
Copy link

@vlinkz vlinkz commented May 27, 2025

Nix has a very different way of using and storing packages, so to make everything work as expected I lie and pretend we have /usr/ even though the $datadir in a nix package is in /nix/store/hash-pkg-version/share (at runtime XDG_DATA_DIRS is set to /run/current-system/sw/share:/nix/store/hash-pkg-version/share:/nix/store/hash-pkg2-version/share etc ).

Waiting for NixOS/nixpkgs#411205 (release tracker) to remove src/asgen/backends/nix/nixpkg.d L144-149

Example asgen-config.json

{
  "ProjectName": "Nix",
  "ArchiveRoot": "https://cache.nixos.org/",
  "Backend": "nix",
  "Features": {
    "processDesktop": true,
    "validateMetainfo": true,
    "createScreenshotsStore": false,
    "noDownloads": true
  },
  "Suites": {
    "nixpkgs": {
      "sections": ["nixos-unstable"],
      "architectures": ["x86_64-linux"]
    }
  }
}

@ximion ximion force-pushed the master branch 2 times, most recently from 7d7c6cd to 30d86a8 Compare September 6, 2025 11:52
@ximion
Copy link
Owner

ximion commented Sep 8, 2025

This is fine :-) Nix is pretty much an outlier compared to the other package-management systems, but if you manage to get something working that people would want to use, there'd be no reason not to merge it.

Also, for FreeBSD we'll likely add support for extra data search paths soon, which may also help you.

@ximion
Copy link
Owner

ximion commented Nov 1, 2025

Also, for FreeBSD we'll likely add support for extra data search paths soon, which may also help you.

That support has been added, check out PackageIndex::dataPrefix() :-)

@ximion ximion added the incomplete The issue/PR is incomplete and waiting for feedback. label Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

incomplete The issue/PR is incomplete and waiting for feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants