From 57814866676a49111385ac5380be4983cc0b465f Mon Sep 17 00:00:00 2001 From: Amy Parker Date: Fri, 31 May 2024 14:18:41 -0700 Subject: [PATCH] itools: init at 1.1 This patch adds itools, a set of four programs (ipraytime, idate, ical, ireminder) which provide command-line tools for common Islamic calculations. It uses libitl (#314794), which was merged to support this tool suite. Signed-off-by: Amy Parker --- pkgs/by-name/it/itools/package.nix | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/it/itools/package.nix diff --git a/pkgs/by-name/it/itools/package.nix b/pkgs/by-name/it/itools/package.nix new file mode 100644 index 000000000000..85cede0eb900 --- /dev/null +++ b/pkgs/by-name/it/itools/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkgs +, pkg-config +, perl +, libitl +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "itools"; + version = "1.1"; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ libitl perl ]; + + outputs = [ "out" "man" ]; + + src = fetchFromGitHub { + owner = "arabeyes-org"; + repo = "itools"; + rev = finalAttrs.version; + hash = "sha256-DxTZaq2SlEmy9k7iAdjctpPkk+2rIaF+xEcfXj/ERWw="; + }; + + meta = { + description = "Islamic command-line tools for prayer times and hijri dates"; + longDescription = '' + The itools package is a set of user friendly applications utilizing Arabeyes' ITL library. + + The package addresses two main areas - hijri date and prayertime calculation. The package + is envisioned to mimick the development of the underlying ITL library and is meant to + always give the end-user a simple means to access its functions. + ''; + homepage = "https://www.arabeyes.org/ITL"; + license = lib.licenses.gpl2Only; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ amyipdev ]; + }; +})