nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 960 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 qtbase, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "qxlsx"; 12 version = "1.5.0"; 13 14 src = fetchFromGitHub { 15 owner = "QtExcel"; 16 repo = "QXlsx"; 17 rev = "v${version}"; 18 hash = "sha256-twOlAiLE0v7+9nWo/Gd+oiKT1umL3UnG1Xa0zDG7u7s="; 19 }; 20 21 patches = [ 22 # Fix for Qt 6.10, can likely be removed when version bump passes v1.5.0. 23 (fetchpatch { 24 url = "https://github.com/QtExcel/QXlsx/commit/90d762625750c6b2c73f6cd96b633e9158aed72e.patch"; 25 hash = "sha256-/0xLrkjuJGZRocK1EyBhuaUmg0usueQz2F340DkQhb0="; 26 }) 27 ]; 28 29 nativeBuildInputs = [ cmake ]; 30 buildInputs = [ qtbase ]; 31 32 preConfigure = '' 33 cd QXlsx 34 ''; 35 36 dontWrapQtApps = true; 37 38 meta = { 39 description = "Excel file(*.xlsx) reader/writer library using Qt 5 or 6"; 40 homepage = "https://qtexcel.github.io/QXlsx"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ nickcao ]; 43 }; 44}