this repo has no description
1# Use pkgs.callPackage
2{ remarshal, runCommand, writeTextFile }: let
3 toYAML = data: let
4 asJson = builtins.toJSON data;
5 asFile = writeTextFile {
6 name = "data.json";
7 text = asJson;
8 };
9 in builtins.readFile (runCommand "to-yaml" {} ''
10 ${remarshal}/bin/remarshal \
11 --input-format json \
12 --output-format yaml \
13 < ${asFile} > $out
14 '');
15in {
16 inherit toYAML;
17}