nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / yt / ytermusic / package.nix
blobe3edf35fe8fc8bfbda9f8ec495ae5763acef8108
2   alsa-lib,
3   dbus,
4   fetchFromGitHub,
5   lib,
6   openssl,
7   pkg-config,
8   rustPlatform,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "ytermusic";
13   version = "0.1.0";
15   src = fetchFromGitHub {
16     owner = "ccgauche";
17     repo = "ytermusic";
18     rev = "beta-${version}";
19     hash = "sha256-nu/vedQNs5TgCG1v5qwwDTnFTyXCS2KnLVrnEhCtzCs=";
20   };
22   cargoLock = {
23     lockFile = ./Cargo.lock;
24     outputHashes = {
25       "rusty_ytdl-0.6.6" = "sha256-htXD8v9Yd7S0iLjP6iZu94tP5KO5vbmkdUybqA7OtlU=";
26       "symphonia-0.5.4" = "sha256-uf0BbpqtlpZhsnV7Cm8egxjb/fXSINsOANTjDUQ4U9M=";
27     };
28   };
29   postPatch = "cp ${./Cargo.lock} Cargo.lock";
31   doCheck = true;
33   cargoBuildType = "release";
35   nativeBuildInputs = [
36     pkg-config
37   ];
39   buildInputs = [
40     openssl
41     alsa-lib
42     dbus
43   ];
45   meta = {
46     description = "TUI based Youtube Music Player that aims to be as fast and simple as possible";
47     homepage = "https://github.com/ccgauche/ytermusic";
48     changelog = "https://github.com/ccgauche/ytermusic/releases/tag/${src.rev}";
49     license = lib.licenses.asl20;
50     maintainers = with lib.maintainers; [ codebam ];
51     mainProgram = "ytermusic";
52   };