Skip to content

nix backend: init#140

Draft
vlinkz wants to merge 1 commit intoximion:masterfrom
vlinkz:nixbackend
Draft

nix backend: init#140
vlinkz wants to merge 1 commit intoximion:masterfrom
vlinkz:nixbackend

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"]
    }
  }
}

@vlinkz vlinkz force-pushed the nixbackend branch 2 times, most recently from ee2e171 to 7200ded Compare June 3, 2025 03:54
@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
@vlinkz vlinkz marked this pull request as ready for review February 1, 2026 09:27
@vlinkz vlinkz force-pushed the nixbackend branch 3 times, most recently from 7fd33f0 to bff2471 Compare February 1, 2026 22:05
@vlinkz vlinkz marked this pull request as draft February 4, 2026 01:01
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