Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 qtbase, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "qxlsx"; 11 version = "1.5.0"; 12 13 src = fetchFromGitHub { 14 owner = "QtExcel"; 15 repo = "QXlsx"; 16 rev = "v${version}"; 17 hash = "sha256-twOlAiLE0v7+9nWo/Gd+oiKT1umL3UnG1Xa0zDG7u7s="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 buildInputs = [ qtbase ]; 22 23 preConfigure = '' 24 cd QXlsx 25 ''; 26 27 dontWrapQtApps = true; 28 29 meta = with lib; { 30 description = "Excel file(*.xlsx) reader/writer library using Qt 5 or 6"; 31 homepage = "https://qtexcel.github.io/QXlsx"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ nickcao ]; 34 }; 35}