I’ve been trying to get NIxos on a VM. My host uses 7.0.14. I found this PR and decided to try to install. Based on this discussion I added this to my config:
let
unstable = import <nixos-unstable> { config = { allowUntree = true; }; };
in
{
nixpkgs.config = {
allowUntree = true;
packageOverrides = pkgs: {
virtualbox = unstable.virtualbox;
# virtualboxGuestAdditions = unstable.virtualBoxGuestAdditions;
};
};
However the build of GuestAdditions is using the wrong ISO image:
/nix/store/v8wdgwqvlx168l3cx1rrbz48xjx5d9k5-VirtualBox-GuestAdditions-7.0.14-6.1.82.drv
building '/nix/store/v8wdgwqvlx168l3cx1rrbz48xjx5d9k5-VirtualBox-GuestAdditions-7.0.14-6.1.82
.drv'...
Running phase: unpackPhase
isoinfo: Warning: Joliet escape sequence uses illegal space at offset 3
Creating directory install
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.12 Guest Additions for Linux 100%
LICENSE
...
src/vboxguest-7.0.12/vboxsf/Makefile-header.gmk
src/vboxguest-7.0.12/Makefile
Running phase: patchPhase
substitute(): ERROR: file 'src/vboxguest-7.0.14/vboxvideo/vbox_ttm.c' does not exist
/nix/store/10i1kjjq5szjn1gp6418x8bc1hswqc90-stdenv-linux/setup: line 131: pop_var_context: he
ad of shell_variables not a function context
error: builder for '/nix/store/v8wdgwqvlx168l3cx1rrbz48xjx5d9k5-VirtualBox-GuestAdditions-7.0
.14-6.1.82.drv' failed with exit code 1
This happens also when I build:
nix-build /nix/store/v8wdgwqvlx168l3cx1rrbz48xjx5d9k5-VirtualBox-GuestAdditio ns-7.0.14-6.1.82.drv
.
What am I doing wrong? I’ve been trying to use thing like nix repl to inspect, but my grasp on this is a bit short (being new to Nix).