Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 951 B view raw
1{ 2 lib, 3 stdenv, 4 mkDerivation, 5 fetchFromGitHub, 6 boost, 7 qtbase, 8 xz, 9 qmake, 10 pkg-config, 11}: 12 13mkDerivation rec { 14 pname = "QMediathekView"; 15 version = "0.2.1"; 16 17 src = fetchFromGitHub { 18 owner = "adamreichold"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "0i9hac9alaajbra3lx23m0iiq6ww4is00lpbzg5x70agjrwj0nd6"; 22 }; 23 24 postPatch = '' 25 substituteInPlace ${pname}.pro \ 26 --replace /usr "" 27 ''; 28 29 buildInputs = [ 30 qtbase 31 xz 32 boost 33 ]; 34 35 nativeBuildInputs = [ 36 qmake 37 pkg-config 38 ]; 39 40 installFlags = [ "INSTALL_ROOT=$(out)" ]; 41 42 meta = with lib; { 43 description = "Alternative Qt-based front-end for the database maintained by the MediathekView project"; 44 inherit (src.meta) homepage; 45 license = licenses.gpl3Plus; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ dotlambda ]; 48 broken = stdenv.hostPlatform.isAarch64; 49 mainProgram = "QMediathekView"; 50 }; 51}