Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
875 B
Nix
44 lines
875 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
curl,
|
|
jq,
|
|
mpv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "somafm-cli";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rockymadden";
|
|
repo = "somafm-cli";
|
|
rev = "v${version}";
|
|
sha256 = "1h5p9qsczgfr450sklh2vkllcpzb7nicbs8ciyvkavh3d7hds0yy";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
install -m0755 -D src/somafm $out/bin/somafm
|
|
wrapProgram $out/bin/somafm --prefix PATH ":" "${
|
|
lib.makeBinPath [
|
|
curl
|
|
jq
|
|
mpv
|
|
]
|
|
}";
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Listen to SomaFM in your terminal via pure bash";
|
|
homepage = "https://github.com/rockymadden/somafm-cli";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
mainProgram = "somafm";
|
|
};
|
|
}
|