diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-04-22 15:11:52 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-04-22 15:51:46 +0200 |
commit | c2bd8ce86205a5cddc02be1036bfb50971f5e939 (patch) | |
tree | f28a917daba92425f430242a976f0fac67078313 /pkgs/development/libraries | |
parent | 5bc2962319ca6ccbd0033c95d3e00c9fde1b67ff (diff) |
libxlsxwriter: init at 1.0.3
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/libxlsxwriter/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxlsxwriter/default.nix b/pkgs/development/libraries/libxlsxwriter/default.nix new file mode 100644 index 0000000000000..849ebcf3c863c --- /dev/null +++ b/pkgs/development/libraries/libxlsxwriter/default.nix @@ -0,0 +1,46 @@ +{ lib +, stdenv +, fetchFromGitHub +, minizip +, python3 +, zlib +}: + +stdenv.mkDerivation rec { + pname = "libxlsxwriter"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "jmcnamara"; + repo = "libxlsxwriter"; + rev = "RELEASE_${version}"; + sha256 = "14c5rgx87nhzasr0j7mcfr1w7ifz0gmdiqy2xq59di5xvcdrpxpv"; + }; + + nativeBuildInputs = [ + python3.pkgs.pytest + ]; + + buildInputs = [ + minizip + zlib + ]; + + makeFlags = [ + "PREFIX=${placeholder "out"}" + "USE_SYSTEM_MINIZIP=1" + ]; + + doCheck = true; + + checkTarget = "test"; + + meta = with lib; { + description = "C library for creating Excel XLSX files"; + homepage = "https://libxlsxwriter.github.io/"; + changelog = "https://github.com/jmcnamara/libxlsxwriter/blob/${src.rev}/Changes.txt"; + license = licenses.bsd2; + maintainers = with maintainers; [ dotlambda ]; + platforms = platforms.unix; + }; +} |