-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
python310Packages.yaramod: init at 3.12.2 #211504
Conversation
Result of 1 package failed to build:
1 package built:
error: builder for '/nix/store/x06rihw9jcirx0w8qvawaqybamqjnfqw-python3.11-yaramod-3.12.2.drv' failed with exit code 1;
last 10 log lines:
> File "/nix/store/i6fyrqgmmix4ysq5gpi277sz675kj5gz-python3.11-setuptools-65.6.3/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
> super().run_command(command)
> File "/nix/store/i6fyrqgmmix4ysq5gpi277sz675kj5gz-python3.11-setuptools-65.6.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
> cmd_obj.run()
> File "setup.py", line 109, in run
> subprocess.check_call(build_cmd)
> File "/nix/store/hi1kv51l7rba36vqr3gf6wcpg57aiy3y-python3-3.11.1/lib/python3.11/subprocess.py", line 413, in check_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--', '-j12']' returned non-zero exit status 2.
> /nix/store/chilfhdcsnmwjl7igrw26j1lrc0zar35-stdenv-linux/setup: line 1570: pop_var_context: head of shell_variables not a function context |
Depends on #211703 |
Sorry for obvious mistakes - I've fixed the description and changelog locally but apparently didn't push my ammended commit (or forgot Don't know how I missed the build fail for 3.11 - thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash.
Thanks for valuable comments. Squashed and pushed the results. In the current state of this PR, the build fails. I'm in the process of reworking it to build without the vendored dependencies. |
I've rewritten the derivation to remove the vendored deps, and re-downloaded them myself. I've tried to use versions already in nixpkgs, but the code seems to depend on the specific vendored versions (or in one case even patches them). For this reason this modification feels fragile to me (what if the project updates the vendored sources). But if that's the preferred solution, I'm OK with it. I've tested the code with nixpkgs-review and in a nix-shell. I've also squashed my commit. Asked @dotlambda for re-review. |
f3cfcee
to
f706538
Compare
Hi @dotlambda, what do you think about the current version? I'll add once again that my preference would be to use vendored dependencies (to reduce the maintanance overhead when they are updated in the project - they are pinned to specific version and the project doesn't work with the version we have in nixpkgs). Nevertheless, I've removed vendored deps as suggested. Let me know if you see anything else that can be improved. |
pybind11 = fetchFromGitHub { | ||
owner = "pybind"; | ||
repo = "pybind11"; | ||
rev = "refs/tags/v2.9.2"; | ||
hash = "sha256-O3bkexUBa+gfiJEM6KSR8y/iVqHqlCFmz/9EghxdIpw="; | ||
}; | ||
json = fetchFromGitHub { | ||
owner = "nlohmann"; | ||
repo = "json"; | ||
rev = "refs/tags/v3.9.1"; | ||
hash = "sha256-THordDPdH2qwk6lFTgeFmkl7iDuA/7YH71PTUe6vJCs="; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we not using nixpkgs versions of json and pybind11?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, not sure about pybind11. I tested it earlier and it was broken with nixpkgs vesion of pybind11. Now I've changed it to the nixpkgs version, and it passes all my tests (and the included pytest tests). So probably I was confused/tested a wrong version.
For json I didn't know how to get the "single header include" for it, but found an example in another package from nixpkgs, so I replaced that.
Co-authored-by: Robert Schütz <[email protected]> Co-authored-by: Fabian Affolter <[email protected]>
Result of 2 packages built:
|
@ofborg build python310Packages.yaramod |
Description of changes
YARA is a language used for creating signatures, especially for malware.
Yaramod is a library created by avast, for parsing and working with yara rules (signatures).
The main project page is https://github.com/avast/yaramod
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes