forked from ekg/guix-genomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
odgi.scm
54 lines (52 loc) · 1.93 KB
/
odgi.scm
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
(define-module (odgi)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix utils)
#:use-module (gnu packages gcc)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages python))
(define-public odgi
(let ((version "0.5.1")
(commit "bc9ef1205c69c9d3545bb0d35dac4cddb4411f00")
(package-revision "20"))
(package
(name "odgi")
(version (string-append version "+" (string-take commit 7) "-" package-revision))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/vgteam/odgi.git")
(commit commit)
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
(base32
"1ar5k69fdrlg8cj1nxvx1zldy04kj6kxangw8n3wblgj8kl44qw4"))))
(build-system cmake-build-system)
(arguments
`(#:phases
(modify-phases
%standard-phases
;; This stashes our build version in the executable
(add-after 'unpack 'set-version
(lambda _
(mkdir "include")
(with-output-to-file "include/odgi_git_version.hpp"
(lambda ()
(format #t "#define ODGI_GIT_VERSION \"~a\"~%" version)))
#t))
(delete 'check))
#:make-flags (list ,(string-append "CC=" (cc-for-target)))))
(native-inputs
`(("python" ,python)
("jemalloc" ,jemalloc)
("gcc" ,gcc-10)))
(synopsis "odgi optimized dynamic sequence graph implementation")
(description
"odgi provides an efficient, succinct dynamic DNA sequence graph model, as well
as a host of algorithms that allow the use of such graphs in bioinformatic
analyses.")
(home-page "https://github.com/vgteam/odgi")
(license license:expat))))