This handler serves content from Flake outputs. It can be used to serve files from Nixpkgs or any other flake.
The path is specified as flakeRef#attr1.attr2.attr3. The first part is the flake reference, the second part is the attribute path.
Examples
- nixpkgs#legacyPackages.x86_64-linux.hello.meta serve the meta information of the hello package
- nixpkgs#legacyPackages.x86_64-linux.hello.version serve the version of the hello package
- nixpkgs#legacyPackages.x86_64-linux.hello/bin/hello serve the hello binary
- nixpkgs#legacyPackages.x86_64-linux.hello/share/ serve the share directory of the hello package