Files
nixpkgs/pkgs/by-name/so/somafm-cli/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

44 lines
898 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
curl,
jq,
mpv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "somafm-cli";
version = "0.3.1";
src = fetchFromGitHub {
owner = "rockymadden";
repo = "somafm-cli";
rev = "v${finalAttrs.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 = {
description = "Listen to SomaFM in your terminal via pure bash";
homepage = "https://github.com/rockymadden/somafm-cli";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
mainProgram = "somafm";
};
})