SEIAROTg / quadlet-nix

Manages Podman containers and networks on NixOS via Quadlet.
MIT License
21 stars 9 forks source link

Broken on latest nixpkgs-unstable #4

Closed Ramblurr closed 5 months ago

Ramblurr commented 5 months ago

There is a new problem with this line in the flake:

https://github.com/SEIAROTg/quadlet-nix/blob/e93b9d9b633ff4686e1efa6b67c49a756cad100f/flake.nix#L10

Over in nixpkgs they added a new argument to the top-level function.

I tried to play around with the import statement, but I'm not sure how to get a handle on all the arguments to pass them to the import.

@SEIAROTg Could you take a look at it?


         at /nix/store/kwbhh3cb3mjci1viqjfm4khhhsmgf8mh-source/container.nix:505:19:

          504|     _unitName = "${name}.service";
          505|     _configText = quadletUtils.unitConfigToText unitConfig;
             |                   ^
          506|   };

       … while calling 'unitConfigToText'

         at /nix/store/kwbhh3cb3mjci1viqjfm4khhhsmgf8mh-source/utils.nix:17:22:

           16|
           17|   unitConfigToText = unitConfig: builtins.concatStringsSep "\n\n" (
             |                      ^
           18|     lib.mapAttrsToList (name: section: "[${name}]\n${systemdLib.attrsToSection section}") unitConfig);

       … while calling anonymous lambda

         at /nix/store/801l7gvdz7yaibhjsxqx82sc7zkakjbq-source/lib/attrsets.nix:1096:10:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
         1097|

       … from call site

         at /nix/store/801l7gvdz7yaibhjsxqx82sc7zkakjbq-source/lib/attrsets.nix:1096:16:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
         1097|

       … while calling anonymous lambda

         at /nix/store/kwbhh3cb3mjci1viqjfm4khhhsmgf8mh-source/utils.nix:18:31:

           17|   unitConfigToText = unitConfig: builtins.concatStringsSep "\n\n" (
           18|     lib.mapAttrsToList (name: section: "[${name}]\n${systemdLib.attrsToSection section}") unitConfig);
             |                               ^
           19| }

       error: function 'anonymous lambda' called without required argument 'utils'

       at /nix/store/801l7gvdz7yaibhjsxqx82sc7zkakjbq-source/nixos/lib/systemd-lib.nix:1:1:

            1| { config, lib, pkgs, utils }:
             | ^
            2|
SEIAROTg commented 5 months ago

Fixed in 1d98e31. Thanks for reporting this!