aboutsummaryrefslogtreecommitdiff
path: root/guix.scm
blob: 44174524d701372b7169eec3c1d12b26f71cff53 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;; 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
;;

(use-modules
 ((guix licenses) #:prefix license:)
 (guix gexp)
 (guix packages)
 (guix git-download)
 (guix build-system guile)
 (gnu packages algebra)
 (gnu packages base)
 (gnu packages bash)
 (gnu packages compression)
 (gnu packages bioinformatics)
 (gnu packages build-tools)
 (gnu packages certs)
 (gnu packages curl)
 (gnu packages gcc)
 (gnu packages guile)
 (gnu packages guile-xyz)
 (gnu packages llvm)
 (gnu packages ninja)
 (gnu packages parallel)
 (gnu packages perl)
 (gnu packages perl6)
 (gnu packages pkg-config)
 (gnu packages python)
 (gnu packages tls)
 (srfi srfi-1)
 (ice-9 popen)
 (ice-9 rdelim))

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

(define %git-commit
    (read-string (open-pipe "git show HEAD | head -1 | cut -d ' ' -f 2" OPEN_READ)))

(define-public gn-guile-git
  (package
    (name "gn-guile-git")
    (version (git-version "4.0.0-" "HEAD" %git-commit))
    (source (local-file %source-dir #:recursive? #t))
    (build-system guile-build-system)

     (inputs
      (list guile-3.0-latest bash-minimal perl
            guile-dbi guile-dbd-mysql guile-fibers guile-gnutls guile-readline guile-redis openssl nss-certs gemma parallel))
     (propagated-inputs
      (list guile-json-4))

#!
     (arguments
      `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
        #:modules ((guix build guile-build-system)
                   (guix build utils)
                   (srfi srfi-26)
                   (ice-9 ftw)
                   (json))))
!#
     (home-page "https://git.genenetwork.com/gn-guile")
     (synopsis "Next generation GN code in guile")
     (description "Use of guile.")
     (license license:gpl3)))

gn-guile-git