Created
May 31, 2020 04:49
-
-
Save lovesegfault/f6619668f8fe8a5264884b6b6982b90a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self: super: { | |
mkSecret = path: let | |
name = builtins.trace self.lib.tail (self.lib.splitString "/" (builtins.toString path)); | |
stub = builtins.toFile name ""; | |
in if builtins.pathExists path then path else self.lib.warn "Using stub for secrets.${name}" stub; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment