depot/third_party/nixpkgs/pkgs/applications/video/qmediathekview/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

43 lines
906 B
Nix

{ 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 = "An 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";
};
}