-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathodgi.scm
56 lines (54 loc) · 2 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
54
55
(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 pkg-config)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages python))
(define-public odgi
(let ((version "0.8.3")
(commit "d55a6aa4ba83472a094c9cf57101413eb7cf7862")
(package-revision "3"))
(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
"0mmw7qhcba1g4d52hwx69fcrarc25dmzk1dzjj55n3dj67qbwyav"))))
(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)
("pkg-config" ,pkg-config)
("gcc" ,gcc-11)))
(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))))