about summary refs log tree commit diff
path: root/pkgs/applications/video/qmediathekview/default.nix
blob: 0e8f3bfb584bc8c157f9e5749c5e793d824dc611 (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
{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, boost
, qtbase
, xz
, qmake
, pkg-config
}:

mkDerivation rec {
  pname = "QMediathekView";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner = "adamreichold";
    repo = pname;
    rev = "v${version}";
    sha256 = "0i9hac9alaajbra3lx23m0iiq6ww4is00lpbzg5x70agjrwj0nd6";
  };

  postPatch = ''
    substituteInPlace ${pname}.pro \
      --replace /usr ""
  '';

  buildInputs = [ qtbase xz boost ];

  nativeBuildInputs = [ qmake pkg-config ];

  installFlags = [ "INSTALL_ROOT=$(out)" ];

  meta = with lib; {
    description = "Alternative Qt-based front-end for the database maintained by the MediathekView project";
    inherit (src.meta) homepage;
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ dotlambda ];
    broken = stdenv.isAarch64;
    mainProgram = "QMediathekView";
  };
}