nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 44 lines 953 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, cmake 6, qtbase 7}: 8 9stdenv.mkDerivation rec { 10 pname = "qxlsx"; 11 version = "1.4.6"; 12 13 src = fetchFromGitHub { 14 owner = "QtExcel"; 15 repo = "QXlsx"; 16 rev = "v${version}"; 17 hash = "sha256-8plnvyb4sQRfEac1TVWgr2yrtAVAPKucgAnsybdUd3U="; 18 }; 19 20 patches = [ 21 # Fix header include path 22 # https://github.com/QtExcel/QXlsx/pull/279 23 (fetchpatch { 24 url = "https://github.com/QtExcel/QXlsx/commit/9d6db9efb92b93c3663ccfef3aec05267ba43723.patch"; 25 hash = "sha256-EbE5CNACAcgENCQh81lBZJ52hCIcBsFhNnYOS0Wr25I="; 26 }) 27 ]; 28 29 nativeBuildInputs = [ cmake ]; 30 buildInputs = [ qtbase ]; 31 32 preConfigure = '' 33 cd QXlsx 34 ''; 35 36 dontWrapQtApps = true; 37 38 meta = with lib;{ 39 description = "Excel file(*.xlsx) reader/writer library using Qt 5 or 6"; 40 homepage = "https://qtexcel.github.io/QXlsx"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ nickcao ]; 43 }; 44}