1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 12:01:06 +01:00

chore: format with alejandra

This commit is contained in:
2022-03-10 21:52:12 +01:00
parent 13727abfd6
commit d37e90cb97
159 changed files with 4239 additions and 3405 deletions

View File

@@ -1,17 +1,21 @@
{ jq, runCommand, fetchFromGitHub }:
let
{
jq,
runCommand,
fetchFromGitHub,
}: let
online-radio = fetchFromGitHub {
owner = "kmein";
repo = "online-radio";
rev = "04d16421355196194a05e5504ba8f66a9c07ee7b";
sha256 = "1q0iagx7df0sd6vl5anvpzyiw4jdwa6c67z45rx622a6cr6m4zzl";
};
in runCommand "worldradio.m3u" {} ''
${jq}/bin/jq --raw-output --slurp 'flatten | map(.url_resolved) | .[]' ${online-radio}/src/data/countries/*.json \
| sort \
| uniq \
> $out
''
in
runCommand "worldradio.m3u" {} ''
${jq}/bin/jq --raw-output --slurp 'flatten | map(.url_resolved) | .[]' ${online-radio}/src/data/countries/*.json \
| sort \
| uniq \
> $out
''
# anthoer method for running a world radio using Icecast Directory
# curl http://dir.xiph.org/ | pup 'a[href^=http]:contains("Play") attr{href}'