From dbac4833b4502f428e90c1541f1744c7bd949d81 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 18 Jan 2019 17:58:01 +0100 Subject: gnu: ibus: Do not hardcode Python version. * gnu/packages/ibus.scm (ibus)[arguments]: Remove hardcoded Python version. --- gnu/packages/ibus.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ibus.scm') diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm index 5575e5b3f4..60ba8a2721 100644 --- a/gnu/packages/ibus.scm +++ b/gnu/packages/ibus.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2016 Chris Marusich ;;; Copyright © 2017, 2018 Efraim Flashner @@ -29,6 +29,7 @@ (define-module (gnu packages ibus) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages anthy) #:use-module (gnu packages autotools) @@ -78,7 +79,9 @@ (define-public ibus (list "CC=gcc" (string-append "pyoverridesdir=" (assoc-ref %outputs "out") - "/lib/python3.6/site-packages/gi/overrides/")) + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/gi/overrides/")) #:phases (modify-phases %standard-phases (add-after 'unpack 'prepare-ucd-dir -- cgit v1.2.3