I’m developing some software (ldgallery) and I’m currently maintaining
the matching package in nixpkgs. I’ve recently added a Nix Flake to the
project’s repository.
The two package definitions are quite different:
- The one in the Flake can rely on Import From Derivation to
directly use the dependencies lock files in the project’s repository,
whereas - the one in nixpkgs uses a copy of
.nix
files manually derived with
*2nix
tools and committed to the package collection.
I now have to maintain two distinct packages for the same software.
Is there a way to instead re-export the definition from the Flake in
nixpkgs?
Or is maintaining two copies the proper way? If so, how could one
minimise the differences between the package definitions so that they
could simply be copy-pasted to update the package in nixpkgs?
Alternatively, should this somewhat niche package simply be dropped from
nixpkgs and instead be added to the Flake index of search.nixos.org?