fix: Changes outputs, nix flake show now completes (#280)

Removed the `default` attribute from `outputs.formatter.<system>`,
instead parse the formatter derivation directly.

This fixes the issue that `nix flake show` doesn't complete.

Co-authored-by: sntx <sntx.htqjd@simplelogin.com>
This commit is contained in:
sntx 2024-04-10 17:55:22 +02:00 committed by GitHub
parent 8afe66ab31
commit 167a4ea0ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,8 +60,6 @@
}
);
formatter = nixpkgs.lib.genAttrs targetSystems (system: {
default = (pkgsFor system).nixfmt-rfc-style;
});
formatter = nixpkgs.lib.genAttrs targetSystems (system: (pkgsFor system).nixfmt-rfc-style);
};
}