feat: introduce starting pieces for nixpkgs-compat library #61

Open
claire wants to merge 1 commit from claire/labs:main into main
First-time contributor

Here's the starting point for an experimental nixpkgs compatibility layer over aux lib. I'm starting small with this because I'm very new to writing nix library code, and want to make sure I've got the broad strokes here right before adding more :)

I suspect that it would be better to run the tests from nixpkg's lib against the compat layer instead of writing my own tests for everything, but I haven't gotten that working yet.

Here's the starting point for an experimental nixpkgs compatibility layer over aux lib. I'm starting small with this because I'm very new to writing nix library code, and want to make sure I've got the broad strokes here right before adding more :) I suspect that it would be better to run [the tests from nixpkg's lib][1] against the compat layer instead of writing my own tests for everything, but I haven't gotten that working yet. [1]: https://github.com/NixOS/nixpkgs/tree/master/lib/tests
claire added 1 commit 2026-02-08 11:17:12 +00:00
First-time contributor

looks good !

i think vendoring a copy of https://github.com/NixOS/nixpkgs/blob/master/lib/tests/misc.nix and commenting out the tests that don't work yet, then incrementally uncommenting stuff as they're fixed, until we can use upstream's version, would be the right move.
but i don't think that should block this PR, it's fine to get merged as-is, that's followup work once we agree this is a good thing to do in the first place.

looks good ! i think vendoring a copy of https://github.com/NixOS/nixpkgs/blob/master/lib/tests/misc.nix and commenting out the tests that don't work yet, then incrementally uncommenting stuff as they're fixed, until we can use upstream's version, would be the right move. but i don't think that should block this PR, it's fine to get merged as-is, that's followup work once we agree this is a good thing to do in the first place.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:claire-main
git checkout claire-main

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout main
git merge --no-ff claire-main
git checkout claire-main
git rebase main
git checkout main
git merge --ff-only claire-main
git checkout claire-main
git rebase main
git checkout main
git merge --no-ff claire-main
git checkout main
git merge --squash claire-main
git checkout main
git merge --ff-only claire-main
git checkout main
git merge claire-main
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: auxolotl/labs#61
No description provided.