Unverified Commit 56e2cd78 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #306630 from codebam/ytermusic

ytermusic: init at 0.1.0
parents 872210e1 64cfcd5f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3861,6 +3861,16 @@
      fingerprint = "6E3A FA6D 915C C2A4 D26F  C53E 7BB4 BA9C 783D 2BBC";
    }];
  };
  codebam = {
      name = "Sean Behan";
      email = "codebam@riseup.net";
      matrix = "@codebam:fedora.im";
      github = "codebam";
      githubId = 6035884;
      keys = [{
        fingerprint = "42CD E212 593C F2FD C723 48A8 0F6D 5021 A87F 92BA";
      }];
    };
  codec = {
    email = "codec@fnord.cx";
    github = "codec";
+4687 −0

File added.

Preview size limit exceeded, changes collapsed.

+54 −0
Original line number Diff line number Diff line
{ alsa-lib
, dbus
, fetchFromGitHub
, lib
, openssl
, pkg-config
, rustPlatform
, stdenv
,
}:

rustPlatform.buildRustPackage rec {
  pname = "ytermusic";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "ccgauche";
    repo = "ytermusic";
    rev = "beta-${version}";
    hash = "sha256-nu/vedQNs5TgCG1v5qwwDTnFTyXCS2KnLVrnEhCtzCs=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "rusty_ytdl-0.6.6" = "sha256-htXD8v9Yd7S0iLjP6iZu94tP5KO5vbmkdUybqA7OtlU=";
      "symphonia-0.5.1" = "sha256-rGvde5w7czMLcOPARK1gFfDLn70VeIrn4nKOL6FPc2U=";
    };
  };
  postPatch = "cp ${./Cargo.lock} Cargo.lock";

  doCheck = true;

  cargoBuildType = "release";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    openssl
    alsa-lib
    dbus
  ];

  meta = {
    description = "TUI based Youtube Music Player that aims to be as fast and simple as possible";
    homepage = "https://github.com/ccgauche/ytermusic";
    changelog = "https://github.com/ccgauche/ytermusic/releases/tag/${src.rev}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ codebam ];
    mainProgram = "ytermusic";
  };
}