571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
823 B
Nix
36 lines
823 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";
|
|
};
|
|
}
|