Skip to main content

flake_serves_package

Function flake_serves_package 

Source
pub fn flake_serves_package(text: &str) -> bool
Expand description

Whether a flake serves a default package output, judged lexically.

Comments and string contents are scrubbed first. The evidence is a packages.default or packages.<system>.default attribute path, or a packages = binding whose own value, up to its terminating ;, is not a mkShell list and binds a default attribute.