You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
369 B

{ pkgs }:
{
gzipJson = {}: {
generate = name: value: pkgs.callPackage
({ runCommand, gzip }: runCommand name
{
nativeBuildInputs = [ gzip ];
value = builtins.toJSON value;
passAsFile = [ "value" ];
} ''
gzip "$valuePath" -c > "$out"
'')
{ };
type = (pkgs.formats.json { }).type;
};
}