aboutsummaryrefslogtreecommitdiff
path: root/.guix/modules/gn-guile.scm
blob: 03f2b148332728101ac7cc9d24049b3db775aeba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;; To use this file to build HEAD of gn-guile:
;;
;;   guix build -f guix.scm
;;
;; To get a development container
;;
;;   guix shell -C -D -f guix.scm
;;

(define-module (gn-guile)
  #:use-module ((gn packages guile) #:select (gn-guile) #:prefix gn:)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (guix git-download))

(define %source-dir (dirname (dirname (current-source-directory))))

(define vcs-file?
  (or (git-predicate %source-dir)
      (const #t)))

(define-public gn-guile
  (package
    (inherit gn:gn-guile)
    (source
     (local-file "../.."
                 "gn-guile-checkout"
                 #:recursive? #t
                 #:select? vcs-file?))))

;; Add definition for tests should you need it, here.

gn-guile