diff options
Diffstat (limited to 'modules/pkgs/writeYAML.nix')
-rw-r--r-- | modules/pkgs/writeYAML.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/pkgs/writeYAML.nix b/modules/pkgs/writeYAML.nix new file mode 100644 index 0000000..064ff39 --- /dev/null +++ b/modules/pkgs/writeYAML.nix @@ -0,0 +1,16 @@ +{ writeTextFile, pythonPackages }: + +let + + yamllint = pythonPackages.yamllint; + +in + +name: text: + writeTextFile + { + inherit name text; + checkPhase = '' + ${yamllint}/bin/yamllint "$out" + ''; + } |