about summary refs log tree commit diff
path: root/.guix/pyhegp-package.scm
diff options
context:
space:
mode:
Diffstat (limited to '.guix/pyhegp-package.scm')
-rw-r--r--.guix/pyhegp-package.scm15
1 files changed, 13 insertions, 2 deletions
diff --git a/.guix/pyhegp-package.scm b/.guix/pyhegp-package.scm
index 20231cd..3eb3685 100644
--- a/.guix/pyhegp-package.scm
+++ b/.guix/pyhegp-package.scm
@@ -43,8 +43,19 @@
     (source (local-file ".."
                         "pyhegp-checkout"
                         #:recursive? #t
-                        #:select? (or (git-predicate (dirname (current-source-directory)))
-                                      (const #t))))
+                        #:select? (lambda (file stat)
+                                    ;; If .guix is included, changes
+                                    ;; to other files under .guix—such
+                                    ;; as the hsmice
+                                    ;; test—unnecessarily trigger a
+                                    ;; rebuild of pyhegp. This could
+                                    ;; be a nuisance when hacking on
+                                    ;; the test scripts.
+                                    (and (not (string-contains file "/.guix/"))
+                                         (not (string-contains file "/e2e-tests/"))
+                                         ((or (git-predicate (dirname (current-source-directory)))
+                                              (const #t))
+                                          file stat)))))
     (build-system pyproject-build-system)
     (arguments
      (list #:phases