-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post processors support #4
Comments
The post process of Generating What will "Meson options parsing" be like? Could you elaborate it? |
Yeah, for rust there is not much else that can be done. From what I saw in PR above - it might be nice to autogenerate As for meson options are basically compile-time feature flags. Here is a massive example https://github.com/systemd/systemd/blob/main/meson_options.txt
|
Would "post processor" in the shape of an executable that returns some JSON would be fine? This way any kind of post-processor could be implemented without touching this repo |
I see, thank you for your detailed explanation. But unfortunately, I think this kind of post-process is totally beyond the scope of this project: please keep in mind that the project name is |
Now Given the following configuration, [fd]
src.github = "sharkdp/fd"
fetch.github = "sharkdp/fd"
extract = ["Cargo.lock"]
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl }:
{
fd = {
pname = "fd";
version = "v8.2.1";
src = fetchgit {
url = "https://github.com/sharkdp/fd";
rev = "v8.2.1";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "00vlifbri021z8nf7xvbaay8mqvnq58h19va9bqr5lhsqj1f82wq";
};
"Cargo.lock" = ''
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "aho-corasick"
version = "0.7.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5"
dependencies = [
"memchr",
]
# ...
'';
};
} so you can do any post-process after running |
@berberman that's a very elegant offering! Thank you! |
It would be cool to add a few post processors for impure operations and for "nice to have" information. This is just a proper issue in response to #3
Postprocessors that I already have in mind: (Feel free to add other ideas in the comments below)
meta
attributes generationThe text was updated successfully, but these errors were encountered: