This helps. It’s not really documented with the other overrides:
https://nixos.org/manual/nixpkgs/stable/#chap-overrides
Seems to be a previous question:
But I did find a reasonable example:
https://nixos.wiki/wiki/Overlays
Using that has gotten me to the type error again I mentioned in the other thread. If I just comment out meta.maintainers
then I get:
building the system configuration...
error: value is a set while a list was expected
at /nix/store/qwg6sqp8vy46mc3i4p90f51snfs7laxi-nixpkgs-22.11pre415372.7b06206fa24/nixpkgs/pkgs/stdenv/generic/check-meta.nix:53:34:
52| hasNoMaintainers = attrs:
53| attrs ? meta.maintainers && (lib.length attrs.meta.maintainers) == 0;
| ^
54|
(use '--show-trace' to show detailed location information)
installApplication.nix:
{ cpio, fetchurl, fixDarwinDylibNames, lib, stdenvNoCC, undmg, unpkg, unzip }:
{ description, homepage, license, maintainers, pname, sha256, url, version }:
stdenvNoCC.mkDerivation rec {
inherit pname version;
nativeBuildInputs = [ cpio fixDarwinDylibNames undmg unpkg unzip ];
sourceRoot = ".";
src = fetchurl {
name = builtins.replaceStrings [ "%20" ] [ "-" ] (builtins.head (builtins.match ".*/([^/]+)" url));
inherit url sha256;
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
# .dmg files or compressed Applications
app=( ./*.app )
if [ ! -z "$app" ]; then
mkdir -p $out/Applications
mv -n "$app" $out/Applications/
fi
# .pkg files
if [ -d "./usr/local" ]; then
mv -n ./usr/local/* $out/
fi
if [ ! -L "./Applications" ] && [ -d "./Applications" ]; then
mkdir -p $out/Applications
mv -n ./Applications/*.app $out/Applications/
fi
'';
meta = with lib; {
description = description;
homepage = homepage;
license = licenses."${license}";
# maintainers = forEach maintainers (x: maintainers."${maintainer}");
platforms = platforms.darwin;
};
}
Error seems to happen even if I comment out the overlays that use installApplication.nix (without commenting them out in the system packages).
I also get an error about running out of memory, but apparently Firefox is using 16.8 GB so that’s my next troubleshooting step…