ytermusic: init at 0.1.0

This commit is contained in:
Sean Behan 2024-05-07 22:58:41 -04:00
parent 68e386f41e
commit 64cfcd5f22
No known key found for this signature in database
GPG Key ID: 0F6D5021A87F92BA
2 changed files with 4741 additions and 0 deletions

4687
pkgs/by-name/yt/ytermusic/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,54 @@
{ 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";
};
}