divnix / std

A DevOps framework for the SDLC with the power of Nix and Flakes. Good for keeping deadlines!
https://std.divnix.com
377 stars 41 forks source link

feat/nvfetcher blocktype #371

Closed blaggacao closed 5 months ago

blaggacao commented 5 months ago

Context

Flake inputs don't store metadata, such as for example the url from which they where fetched.

There's no practical way * to get that data unless the repository contains it in its files.

However, sometisem you need that metadata, for example to clone local compies of the sources to work on them.

* you could parse flake.nix manually with something like (import <reporoot>/flake.nix).inputs, in all theroy

Also, albeit solutions such as flakehub exist, flake inputs are notoriously bad at detecting new versions.

Proposed Solution

Implement an nvfetcher block type in order to: