about summary refs log tree commit diff
path: root/pkgs/by-name/te/televido/package.nix
blob: f2c31bb94942932e96e4b4a47524a01a8a5dd40e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
, cargo
, wrapGAppsHook4
, blueprint-compiler
, libadwaita
, desktop-file-utils
, openssl
}:

stdenv.mkDerivation rec {
  pname = "televido";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "d-k-bo";
    repo = "televido";
    rev = "v${version}";
    hash = "sha256-pMrMXRnfvpDLFkL2IqYJKRao/OF78mXUCBqBgT97+hc=";
  };

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit src;
    name = "${pname}-${version}";
    hash = "sha256-wavxkhDS0hspGMw5ZKTxjZ07TiZ67OkbMhicB8h5y64=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    rustPlatform.cargoSetupHook
    rustc
    cargo
    wrapGAppsHook4
    blueprint-compiler
    openssl
  ];

  buildInputs = [
    libadwaita
    desktop-file-utils
  ];

  meta = with lib; {
    description = "Viewer for German-language public broadcasting live streams and archives";
    homepage = "https://github.com/d-k-bo/televido";
    license = licenses.gpl3;
    mainProgram = "televido";
    maintainers = with maintainers; [ seineeloquenz ];
    platforms = platforms.linux;
  };
}