mszep / pandoc_resume

The Markdown Resume
http://mszep.github.io/pandoc_resume/
MIT License
1.62k stars 756 forks source link

flake.nix: fix outputs structure #89

Closed tomeon closed 1 year ago

tomeon commented 1 year ago

Marked as a draft because this branch is based on #88.

This PR introduces two changes:

Swap the resume and system attribute nesting order

In current master, the Nix derivation representing the built resume lives under the flake output attribute packages.resume.<system>. nix flake check does not like this, complaining error: 'resume' is not a valid system type. I have swapped the nesting such that the built resume now lives at packages.<system>.resume.

Upstream flake output schema changes

The Nix flake output schema changed somewhat recently; now, rather than defaultPackage.<system> and devShell.<system>, flakes are expected to expose packages.<system>.default and devShells.<system>.default. I have updated this flake's outputs to reflect these changes, while also aliasing defaultPackage.<system> to packages.<system>.default and aliasing devShell.<system> to devShells.<system>.default for backward compatibility.

mszep commented 1 year ago

Thanks @tomeon!