depot/third_party/nixpkgs/pkgs/tools/misc/somafm-cli/default.nix
Default email ae1b531433 Project import generated by Copybara.
GitOrigin-RevId: 1dc37370c489b610f8b91d7fdd40633163ffbafd
2020-10-27 01:29:36 +01:00

34 lines
804 B
Nix

{ 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 ":" "${stdenv.lib.makeBinPath [ curl jq mpv ]}";
'';
meta = with stdenv.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 ];
};
}