From 3cbb634a8900f1cb0a9bb057c06fcac3079b7bea Mon Sep 17 00:00:00 2001 From: David Elsing Date: Thu, 13 Oct 2022 21:04:16 +0000 Subject: gnu: Add sajson-for-gemmi. * gnu/packages/cpp.scm (sajson-for-gemmi): New variable. Signed-off-by: Liliana Marie Prikler --- gnu/packages/cpp.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gnu/packages/cpp.scm') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 7cf7269f7f..c8df516834 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2102,6 +2102,22 @@ (define-public sajson parsing with only a single memory allocation.") (license license:expat)))) +(define-public sajson-for-gemmi + (package/inherit sajson + (name "sajson-for-gemmi") + (source (origin + (inherit (package-source sajson)) + (patches (cons + (search-patch + "sajson-for-gemmi-numbers-as-strings.patch") + (origin-patches (package-source sajson)))))) + (arguments + (substitute-keyword-arguments (package-arguments sajson) + ;; This is a modified version used in gemmi, in which numbers are kept + ;; as strings. Building the tests fails with the modification. + ((#:tests? _ #f) #f))) + (properties '((hidden? . #t))))) + (define-public optionparser (package (name "optionparser") -- cgit v1.2.3