Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 kdePackages, 6 meson, 7 ninja, 8 pkg-config, 9 cmake, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "qdocumentview"; 14 version = "0.3.0.1"; 15 16 src = fetchFromGitLab { 17 owner = "extraqt"; 18 repo = "qdocumentview"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-z5Z43fo6oemGBn5Gfmx5ndeOva+qSH6mwkUWClylChA="; 21 }; 22 23 nativeBuildInputs = [ 24 meson 25 ninja 26 cmake 27 pkg-config 28 ]; 29 30 buildInputs = [ 31 kdePackages.qtbase 32 kdePackages.poppler 33 ]; 34 35 dontWrapQtApps = true; 36 37 meta = { 38 description = "Widget to render multi-page documents"; 39 mainProgram = "qdocumentview"; 40 homepage = "https://gitlab.com/extraqt/qdocumentview"; 41 license = lib.licenses.gpl2Plus; 42 maintainers = with lib.maintainers; [ ]; 43 platforms = lib.platforms.linux; 44 }; 45})