diff --git a/bob/devtools/data/gitlab-ci/single-package.yaml b/bob/devtools/data/gitlab-ci/single-package.yaml
index 6029d345efc0b3cb240498e16ef216d5ad859fbe..cae4b95f1758ba2ac31c2b0e17169fc162e1a162 100644
--- a/bob/devtools/data/gitlab-ci/single-package.yaml
+++ b/bob/devtools/data/gitlab-ci/single-package.yaml
@@ -36,7 +36,13 @@ stages:
 .build_linux_template: &linux_build_job
   <<: *build_job
   before_script:
-    - yum install -y xorg-x11-drv-nouveau
+    - yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
+    - wget https://developer.download.nvidia.com/compute/cuda/repos/rhel6/x86_64/cuda-repo-rhel6-10.1.105-1.x86_64.rpm
+    - rpm -i cuda-repo-rhel6-10.1.105-1.x86_64.rpm
+    - yum clean all
+    - yum install -y cuda
+    - export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}
+    - export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   tags:
     - docker
   image: continuumio/conda-concourse-ci