python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / ra / radio-cli / package.nix
blob655e416b554af2b9f65d258d89254404738c7689
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   makeWrapper,
6   pkg-config,
7   openssl,
8   mpv,
9 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "radio-cli";
12   version = "2.3.1";
14   src = fetchFromGitHub {
15     owner = "margual56";
16     repo = "radio-cli";
17     rev = "v${version}";
18     hash = "sha256-XN0IzU7+V0zUUXfOygWrZXQX09IEpVo2Rhwfv+Lny/E=";
19   };
21   cargoHash = "sha256-XCzDNUZpyfu4gJr1lUx1/VbLkEv3OnJvYku0eEJbK5s=";
23   buildInputs = [ openssl ];
25   nativeBuildInputs = [
26     pkg-config
27     makeWrapper
28   ];
30   postInstall = ''
31     wrapProgram "$out/bin/radio-cli" \
32       --suffix PATH : ${lib.makeBinPath [ mpv ]}
33   '';
35   meta = {
36     description = "Simple radio CLI written in rust";
37     homepage = "https://github.com/margual56/radio-cli";
38     changelog = "https://github.com/margual56/radio-cli/releases/tag/v${version}";
39     license = lib.licenses.gpl2Only;
40     maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
41     mainProgram = "radio-cli";
42     platforms = lib.platforms.linux;
43   };