From 4d75646104b098e3f3304366654d30e06bf36b2f Mon Sep 17 00:00:00 2001
From: Alice BRENON <alice.brenon@ens-lyon.fr>
Date: Mon, 21 Mar 2022 15:21:24 +0100
Subject: [PATCH] Stop including non-versioned files in the build input (to
 skip heavy files in datasets)

---
 guix.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix.scm b/guix.scm
index 578f37a..cbacef1 100644
--- a/guix.scm
+++ b/guix.scm
@@ -3,6 +3,7 @@
                                                   python-nltk
                                                   python-seaborn))
              (guix gexp)
+             (guix git-download)
              ((guix licenses) #:select (lgpl3+))
              (guix packages)
              (guix build-system python))
@@ -15,7 +16,7 @@
     (source
       (local-file %source-dir
                   #:recursive? #t
-                  #:select? (lambda (x . _) (not (string=? (basename x) ".git")))))
+                  #:select? (git-predicate %source-dir)))
     (build-system python-build-system)
     (propagated-inputs
       (list python-matplotlib
-- 
GitLab