Message ID | 08f02411d27405aa3f34de957a34a25df21c8acc.1722781401.git.i@dan.games |
---|---|
State | New |
Headers | show |
Series | gnu: telegram-desktop: Update to 5.3.2. | expand |
Am Sonntag, dem 04.08.2024 um 22:30 +0800 schrieb dan: > * gnu/packages/cpp.scm (ada): New variable. > > Change-Id: I9924bba53ed58bbf306bf073c9724cd7bd6f570a > --- > gnu/packages/cpp.scm | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm > index c1c2a4028b..de607f4756 100644 > --- a/gnu/packages/cpp.scm > +++ b/gnu/packages/cpp.scm > @@ -3244,3 +3244,26 @@ (define-public tl-optional > the std::optional for C++11/14/17, with support for monadic > operations added in > C++23.") > (license license:cc0))) > + > +(define-public ada > + (package > + (name "ada") Given that ada is also a programming language, perhaps we should play it safe and name the package "cpp-ada-url-parser" > + (version "2.9.0") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/ada-url/ada.git") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 (base32 > "1d2mj2zmw0dkkgas3bap2xwlizsy0qdpqwcavb4hqx7xp5xnm7yn")))) > + (build-system cmake-build-system) > + (arguments > + (list > + #:configure-flags > + #~(list "-DADA_TESTING=OFF" "-DADA_TOOLS=OFF"))) We should enable testing, even if we need to patch the cmake files to unvendor inputs. > + (home-page "https://github.com/ada-url/ada") It looks like the home-page is instead https://ada-url.com/ > + (synopsis "URL parser") > + (description "Ada is a fast and spec-compliant URL parser > written in C++. > +Specification for URL parser can be found from the WHATWG website.") > + (license license:gpl3+))) Cheers
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index c1c2a4028b..de607f4756 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3244,3 +3244,26 @@ (define-public tl-optional the std::optional for C++11/14/17, with support for monadic operations added in C++23.") (license license:cc0))) + +(define-public ada + (package + (name "ada") + (version "2.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ada-url/ada.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "1d2mj2zmw0dkkgas3bap2xwlizsy0qdpqwcavb4hqx7xp5xnm7yn")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DADA_TESTING=OFF" "-DADA_TOOLS=OFF"))) + (home-page "https://github.com/ada-url/ada") + (synopsis "URL parser") + (description "Ada is a fast and spec-compliant URL parser written in C++. +Specification for URL parser can be found from the WHATWG website.") + (license license:gpl3+)))