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
chkcrontab: init at 1.7 #35347
chkcrontab: init at 1.7 #35347
Conversation
746ce24
to
d24a848
Compare
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.
The expression belongs into pkgs/tools/...
and buildPythonApplication
should be used. It should be called from all-packages.nix
.
@@ -0,0 +1,18 @@ | |||
{ buildPythonPackage, stdenv, fetchPypi }: | |||
|
|||
buildPythonPackage rec { |
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.
buildPythonApplication
@fpletz @dotlambda thanks for the feedback. However I won’t have any laptop to code until tuesday evening, I can fix it then :) |
d24a848
to
86cf492
Compare
@dotlambda @fpletz done :) |
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.
Two final changes, then it's good to go.
pkgs/tools/chkcrontab/default.nix
Outdated
description = "A tool to detect crontab errors"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ ma27 ]; | ||
homepage = https://pypi.python.org/pypi/chkcrontab; |
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.
pkgs/top-level/all-packages.nix
Outdated
@@ -1531,6 +1531,8 @@ with pkgs; | |||
|
|||
checkinstall = callPackage ../tools/package-management/checkinstall { }; | |||
|
|||
chkcrontab = callPackage ../tools/chkcrontab { }; |
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 move to tools/admin sor something like that
86cf492
to
6685dff
Compare
pkgs/top-level/all-packages.nix
Outdated
@@ -608,6 +608,8 @@ with pkgs; | |||
|
|||
container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { }; | |||
|
|||
chkcrontab = callPackage ../tools/chkcrontab { }; |
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 choose a subdir of tools/
@GrahamcOfBorg build chkcrontab |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
`chkcrontab` is a simple utility to check crontab for errors. Fixes NixOS#34969
@dotlambda I fixed the issue. However I'm confused about the error message, when I run |
What did you change? |
@GrahamcOfBorg build chkcrontab |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
@dotlambda I didn't change any of the logic, |
@grahamc could you please have a short look at the borg's output? I tried the sandbox build successfully and I don't know if I managed to screw something up or that's a bug of @GrahamcOfBorg :) |
@GrahamcOfBorg build chkcrontab |
1 similar comment
@GrahamcOfBorg build chkcrontab |
Success on aarch64-linux (full log) Attempted: chkcrontab Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: chkcrontab Partial log (click to expand)
|
interesting... I actually added myself to the known users: NixOS/ofborg@b00ab5a |
Motivation for this change
chkcrontab
is a simple utility to check crontab for errors.Fixes #34969
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)