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
ovftool: 4.4.1-16812187 -> 4.5.0-20459872 #214663
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1795 |
To test:
|
Result of 1 package built:
Tested it with a local OVA that I generally convert to OVF for a certain process. Worked fine.
|
filename = "VMware-ovftool-${version}-lin.x86_64.zip"; | ||
url = "${baseUrl}/f87355ff-f7a9-4532-b312-0be218a92eac/b2916af6-9f4f-4112-adac-49d1d6c81f63/${filename}"; | ||
sha256 = "1fkm18yfkkm92m7ccl6b4nxy5lagwwldq56b567091a5sgad38zw"; | ||
unpackPhase = ovftoolZipUnpackPhase; | ||
}; | ||
}; |
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 needs a or throw unsupported system otherwise eval fails on other platforms.
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.
It's actually just below.
Added an installCheckPhase that uses a handcrafted OVA of NixOS with a 1 MiB root disk containing all zeroes. |
Oof, looks like it's trying to editorconfig check the OVA... 🤦 pkgs/tools/virtualization/ovftool/installCheckPhase.ova: |
In case you're wondering what's in the ovf: https://gist.github.com/numinit/7f79b3387cbc83a1111dd5da5ef176d2 |
7534a95
to
83a0f5e
Compare
73db240
to
9b3a1a0
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1846 |
@numinit can you please squash your commits related to the package modification? |
Use ovftool's bundled OpenSSL since they appear to be tied to it.
9b3a1a0
to
5e6a7aa
Compare
cd ovftool-check | ||
|
||
$out/bin/ovftool ${./installCheckPhase.ova} nixos.ovf | ||
if [ ! -f nixos.ovf ] || [ ! -f nixos.mf ] || [ ! -f nixos-disk1.vmdk ]; then |
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.
if [ ! -f nixos.ovf ] || [ ! -f nixos.mf ] || [ ! -f nixos-disk1.vmdk ]; then | |
if [[ ! -f nixos.ovf || ! -f nixos.mf || ! -f nixos-disk1.vmdk ]]; then |
@@ -116,12 +70,12 @@ stdenv.mkDerivation rec { | |||
|
|||
nativeBuildInputs = [ autoPatchelfHook makeWrapper unzip ]; | |||
|
|||
preferLocalBuild = true; | |||
|
|||
sourceRoot = "."; | |||
|
|||
unpackPhase = ovftoolSystem.unpackPhase; |
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.
unpackPhase = ovftoolSystem.unpackPhase; | |
inherit (ovftoolSystem) unpackPhase; |
Use ovftool's bundled OpenSSL since they appear to be tied to it.
On the plus side -- no more FHS env needed.
On the minus side -- no more aarch64 support.
Someone get on VMWare to update ovftool to use a modern version of OpenSSL, seriously.
Description of changes
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