summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-01-18 17:58:01 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-01-18 17:58:58 +0100
commitdbac4833b4502f428e90c1541f1744c7bd949d81 (patch)
tree5e7b0ede141e73b5717ad6b4813d659b38728270 /gnu
parent3bbd6919bd84b76686d1aa626ba861faf3fc8ceb (diff)
downloadguix-dbac4833b4502f428e90c1541f1744c7bd949d81.tar.gz
gnu: ibus: Do not hardcode Python version.
* gnu/packages/ibus.scm (ibus)[arguments]: Remove hardcoded Python version.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ibus.scm7
1 files changed, 5 insertions, 2 deletions
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 <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
 ;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
@@ -29,6 +29,7 @@
   #: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 @@
        (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