From 178b762d686405a25dcc7bbf2f4dda98df8a3bde Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 10 Aug 2022 21:39:25 +0200 Subject: [PATCH] gnu: libetonyek: Don't hard code mdds version. * gnu/packages/libreoffice.scm (libetonyek)[arguments]: Automatically pass the major+minor version components of the "mdds" input. --- gnu/packages/libreoffice.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 895acdb572..da30575357 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -34,6 +34,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix build-system trivial) + #:use-module (guix gexp) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -444,7 +445,11 @@ CorelDRAW documents of all versions.") "16hy60ws29pb4pz3z5l4920yn9hnk2vlij0xfs5qi1w4drd46c5l")))) (build-system gnu-build-system) (arguments - `(#:configure-flags '("--with-mdds=1.5"))) + (list #:configure-flags + #~(list (string-append "--with-mdds=" + #$(version-major+minor + (package-version + (this-package-input "mdds"))))))) (native-inputs (list cppunit doxygen gperf pkg-config)) (propagated-inputs ; in Requires or Requires.private field of .pkg