It was failing to build on aarch64-linux with:
Executing dotnetConfigureHook
Determining projects to restore...
Restored /build/source/OpenTracker.UnitTests/OpenTracker.UnitTests.csproj (in 35.07 sec).
Restored /build/source/OpenTracker.Models/OpenTracker.Models.csproj (in 520 ms).
Restored /build/source/OpenTracker.Utils/OpenTracker.Utils.csproj (in 48 ms).
/build/source/OpenTracker/OpenTracker.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.linux-arm64. No packages exist with this id in source(s): /nix/store/x82zwgmqdbp4xykx1nkrjin8hicm8jld-opentracker-1.8.2-nuget-source/lib [/build/source/OpenTracker.sln]
Failed to restore /build/source/OpenTracker/OpenTracker.csproj (in 12.45 sec).
Restored /build/source/Avalonia.ThemeManager/Avalonia.ThemeManager.csproj (in 56 ms).
https://github.com/NixOS/nixpkgs/issues/175196
The loop involved:
- pkgs is strict in the config.nix freeformType's produced attrNames,
as these are included in the config.
- the attrNames were strict in all the direct attrValues, because of
scanning for `mkIf`s.
`lazyAttrsOf` removes proper `mkIf` support, which we don't need here.
Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:
ld: libmkimxboot.a(elf.c.o):utils/imxtools/sbtools/misc.h:43: multiple definition of `g_nr_keys';
libmkimxboot.a(mkimxboot.c.o):utils/imxtools/sbtools/misc.h:43: first defined here
Prior to this patch:
$ nix-instantiate --eval -E '
> with import ./. {
> localSystem.config = "aarch64-unknown-linux-musl";
> };
> (nixos {}).config.nixpkgs.localSystem.config
> '
"aarch64-unknown-linux-gnu"
Because only the system triple was being passed through, the Musl part
of the system specification was lost. This patch fixes various
occurrences of NixOS evaluation when a Nixpkgs evaluation is already
available, to pass through the full elaborated system attribute set,
to avoid this loss of precision.
* monado: 21.0.0 -> unstable-2022-05-28
Upstream hasn't had a version bump in 1.5 years, lots of progress since then.
monado: Apply suggestions from @SuperSandro2000's review
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
* monado: set mainProgram to monado-cli
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>