diff options
| author | Giacomo Leidi <goodoldpaul@autistici.org> | 2025-09-15 14:43:37 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-09-30 08:43:36 +0200 |
| commit | f8928096f537be4c043bc3599425497300196868 (patch) | |
| tree | cf92063181e9a478b388af73bf94b075a3b2ddc1 /gnu/packages/elixir-xyz.scm | |
| parent | 491da90ac5e873b6056db7ef66515d68aa978a23 (diff) | |
gnu: Add elixir-timex.
* gnu/packages/elixir-xyz.scm (elixir-timex): New variable.
Change-Id: I08a4abb41a1a8c203cfb148d03da55d32d584874
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/elixir-xyz.scm')
| -rw-r--r-- | gnu/packages/elixir-xyz.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/elixir-xyz.scm b/gnu/packages/elixir-xyz.scm index 1b8431b80d3..cbfdc1068e0 100644 --- a/gnu/packages/elixir-xyz.scm +++ b/gnu/packages/elixir-xyz.scm | |||
| @@ -1060,6 +1060,41 @@ formatted diff between two strings.") | |||
| 1060 | (home-page "https://hexdocs.pm/text_diff/") | 1060 | (home-page "https://hexdocs.pm/text_diff/") |
| 1061 | (license license:expat))) | 1061 | (license license:expat))) |
| 1062 | 1062 | ||
| 1063 | (define-public elixir-timex | ||
| 1064 | (package | ||
| 1065 | (name "elixir-timex") | ||
| 1066 | (version "3.7.13") | ||
| 1067 | (source | ||
| 1068 | (origin | ||
| 1069 | (method url-fetch) | ||
| 1070 | (uri (hexpm-uri "timex" version)) | ||
| 1071 | (sha256 | ||
| 1072 | (base32 "0m2cdmp172zpi6ska9yky2rj2qr4863zvd5qfglji4v6482qwn09")))) | ||
| 1073 | (build-system mix-build-system) | ||
| 1074 | (arguments | ||
| 1075 | (list | ||
| 1076 | ;; Tests appear to require network. | ||
| 1077 | #:tests? #f | ||
| 1078 | #:phases | ||
| 1079 | #~(modify-phases %standard-phases | ||
| 1080 | (add-after 'unpack 'set-locales | ||
| 1081 | (lambda _ | ||
| 1082 | (mkdir-p "config") | ||
| 1083 | (call-with-output-file "config/config.exs" | ||
| 1084 | (lambda (port) | ||
| 1085 | (display "import Config | ||
| 1086 | |||
| 1087 | config :gettext, :default_locale, \"en\"\n" port)))))))) | ||
| 1088 | (propagated-inputs (list elixir-combine elixir-gettext elixir-tzdata)) | ||
| 1089 | (synopsis | ||
| 1090 | "Comprehensive date/time library for Elixir projects") | ||
| 1091 | (description | ||
| 1092 | "Timex is a rich, comprehensive Date/Time library for Elixir projects, with | ||
| 1093 | full timezone support via the @code{:tzdata} package. If you need to manipulate | ||
| 1094 | dates, times, datetimes, timestamps, etc., then Timex is for you.") | ||
| 1095 | (home-page "https://hexdocs.pm/timex/") | ||
| 1096 | (license license:expat))) | ||
| 1097 | |||
| 1063 | (define-public elixir-traverse | 1098 | (define-public elixir-traverse |
| 1064 | (package | 1099 | (package |
| 1065 | (name "elixir-traverse") | 1100 | (name "elixir-traverse") |
