From ce3258ddf557f73397b9d8f614cbbad422b51427 Mon Sep 17 00:00:00 2001 From: Amy Parker Date: Mon, 27 May 2024 17:32:50 -0700 Subject: [PATCH] libitl: init at 0.1.8 This patch adds the Islamic Tools Library, which provides functions for calculating Islamic prayer times and Hijri calendar dates. It is necessary to add ITL before adding the itools suite (ical, ipraytime, ireminder, idate), which will be requested for addition to nixpkgs after libitl's acceptance. Signed-off-by: Amy Parker --- maintainers/maintainer-list.nix | 9 +++++++++ pkgs/by-name/li/libitl/package.nix | 32 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/by-name/li/libitl/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1785b1acdb26..bfa527981a7b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1168,6 +1168,15 @@ githubId = 858965; name = "Andrew Morsillo"; }; + amyipdev = { + email = "amy@amyip.net"; + github = "amyipdev"; + githubId = 46307646; + name = "Amy Parker"; + keys = [{ + fingerprint = "7786 034B D521 49F5 1B0A 2A14 B112 2F04 E962 DDC5"; + }]; + }; amz-x = { email = "mail@amz-x.com"; github = "amz-x"; diff --git a/pkgs/by-name/li/libitl/package.nix b/pkgs/by-name/li/libitl/package.nix new file mode 100644 index 000000000000..e1d3a21e7291 --- /dev/null +++ b/pkgs/by-name/li/libitl/package.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, fetchpatch +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libitl"; + version = "0.1.8-unstable-2024-05-26"; + + nativeBuildInputs = [ cmake ]; + + src = fetchFromGitHub { + owner = "arabeyes-org"; + repo = "ITL"; + rev = "07de1851722d0818d1f981df234e1b585eb60e05"; + hash = "sha256-bhejnA7FfuopR27heliaE/vNd1Rqvnjj3n/vkjmimAw="; + }; + + meta = with lib; { + description = "Islamic Tools and Libraries (ITL)"; + longDescription = '' + The Islamic Tools and Libraries (ITL) project provides + a fully featured library for performing common Islamic calculations. + ''; + homepage = "https://www.arabeyes.org/ITL"; + license = licenses.lgpl21Only; + platforms = platforms.all; + maintainers = with maintainers; [ amyipdev ]; + }; +})