Long term passthru.tests portability between nixpkgs <-> flakes?

I’m finally trying out flakes in the context of some old projects.

I might want to add them to nixpkgs some day, so it seems ideal to be able to create tests as passthru.tests derivations and also run them with nix flake check.

I asked around on Matrix for existing patterns and got this example:

Since I’ve imagined flakes helping smooth out the work necessary to pull a package into nixpkgs or push it back out into a secondary package collection, this feels like a conspicuous amount of friction. Am I overlooking something?

1 Like