Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
404 B · 17 lines
Nix
at main
1234567891011121314151617# Use pkgs.callPackage{ remarshal, runCommand, writeTextFile }: let toYAML = data: let asJson = builtins.toJSON data; asFile = writeTextFile { name = "data.json"; text = asJson; }; in builtins.readFile (runCommand "to-yaml" {} '' ${remarshal}/bin/remarshal \ --input-format json \ --output-format yaml \ < ${asFile} > $out '');in { inherit toYAML;}