How hard would it be to create a dub2deb tool?

deadalnix deadalnix at
Sat Feb 20 00:40:06 UTC 2021

On Friday, 19 February 2021 at 08:07:29 UTC, Dukc wrote:
> Good news - none of these are problems for dub2nix. The final 
> Nix derivation (Nix install script) won't use dub2nix program 
> directly, it uses `dub.selections.nix` file the package 
> maintainer has pregenerated with the tool. `dub selections.nix` 
> links directly to github projects, and to specific versions of 
> them - newer version of the DUB package won't be used unless 
> the maintainer regenerates `dub.selections.nix`. Nix forces 
> this design - Internet downloads are verified with a sha256 
> provided in the dub derivation precisely because of the issues 
> you mentioned.
> As for the availibility issue, Nix caches Internet downloads 
> done by the derivations, and if you get a package published at 
> Nixpkgs repository, it'll be cached in their servers too.

I'm kind of dumb because I was actually aware of NixOS, and 
didn't made the link at all.

Still not quite what I need, but indeed much better than what I 
assumed in my initial assessment.

More information about the Digitalmars-d mailing list