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
amazon-ec2-utils: Merge with / replace ec2-utils #110930
base: master
Are you sure you want to change the base?
Conversation
In NixOS#108804 `aws-ec2-utils` was packaged, not noticing that a much older version of the same project was already packaged in nixpkgs before as `ec2-utils`. This commit merges the two: * Amazon recently published the full source repo on GitHub and renamed the project (see `amazon-ec2-utils.spec` changelog): > Rename the project to amazon-ec2-utils * The old one was extracted from a RPM, the new one is built from source. * The new one is the more recent version 1.3. * In the new one we hadn't installed udev rules yet; in the old we did. The merged version has both. * Maintainers merged. * `installCheck` added to test execution. * Alias added for the old name.
3a095e6
to
f39ef5d
Compare
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package built:
The following issues got detected with the above build packages. amazon-ec2-utils: Please consider this feature to be alpha. A substituteInPlace with an unmatched pattern got detected:
Please check the offending substituteInPlace for typos or changes in source. |
@SuperSandro2000 That is very useful, how does that work?
Something in nixpkgs seems to move Should we replace the use of |
It greps the log for the occurrence of that error. See https://github.com/SuperSandro2000/nixpkgs-review-checks/blob/master/nixpkgs-review-checks#L80 for the exact code.
I think because the difference is very blurred in nixpkgs.
I am not sure. |
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.
This is great, thank you for merging them together. While I cannot review the nix as well, the notes on what was merged sounds good to me.
Requires re-base. |
@nh2 could I help, or should I leave it to you? |
I marked this as stale due to inactivity. → More info |
Not stale, still valuable cleanup. |
@SuperSandro2000 / @nh2 / @tomberek, I'd like to complete this to get it merged. Aside from rebasing, are there any updates needed for the bin/sbin topic discussed above? |
}; | ||
|
||
buildInputs = [ | ||
python3 |
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.
You are sure this is not nativeBuildInputs?
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.
Yes, ebsnvme-id
is a python script, so python is needed at runtime (and not at build time).
]; | ||
|
||
propagatedBuildInputs = [ | ||
curl |
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 not use a wrapper?
installPhase = '' | ||
install -Dm755 ec2-metadata --target-directory $out/bin/ | ||
|
||
install -Dm755 --target-directory $out/sbin/ ebsnvme-id |
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.
NixOS does not use a sbin directory.
See also #228881 for another update to the |
Motivation for this change
In #108804
aws-ec2-utils
was packaged, not noticing that a mucholder version of the same project was already packaged in nixpkgs
before as
ec2-utils
.This commit merges the two:
renamed the project (see
amazon-ec2-utils.spec
changelog):The merged version has both.
virtualization/
as the containing folder (from the old).installCheck
added to test execution.CC @thefloweringash @ketzacoatl
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)