Skip to content

Instantly share code, notes, and snippets.

@johanot
Created February 20, 2019 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johanot/8fd23f16690c3efb480f65c17ada131a to your computer and use it in GitHub Desktop.
Save johanot/8fd23f16690c3efb480f65c17ada131a to your computer and use it in GitHub Desktop.
if nixBuildTargetFile != "" {
if path, err := filepath.Abs(nixBuildTargetFile); err == nil {
nixBuildTargets = fmt.Sprintf("import \"%s\"", path)
}
} else if nixBuildTarget != "" {
nixBuildTargets = fmt.Sprintf("{ \"out\" = %s; }", nixBuildTarget)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment