Skip to content

Commit

Permalink
guix: updated guix.scm as a module so now it can build for different …
Browse files Browse the repository at this point in the history
…targets! See the header.

      Also bumped clang to v18.
  • Loading branch information
pjotrp committed Dec 15, 2024
1 parent 92745ae commit fee6cc0
Showing 1 changed file with 41 additions and 33 deletions.
74 changes: 41 additions & 33 deletions guix.scm
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
;; To use this file to build a version of wfmash using git HEAD:
;;
;; guix build -f guix.scm
;; guix build -f guix.scm # default build
;; guix build -L . wfmash-gcc-git # gcc build
;; guix build -L . wfmash-static-gcc-git # gcc static build (default)
;; guix build -L . wfmash-clang-git # clang build
;;
;; To get a development container using a recent guix (see `guix pull`)
;;
;; guix shell -C -D -F -f guix.scm
;; guix shell -C -D -F -f guix.scm # default build
;; guix shell -L . -C -D -F wfmash-gcc-git
;; guix shell -L . -C -D -F wfmash-gcc-static-git
;; guix shell -L . -C -D -F wfmash-clang-git
;;
;; and inside the container
;;
Expand All @@ -15,38 +21,42 @@
;; make -j 12 VERBOSE=1
;; ctest . --verbose
;;
;; alternative builds are
;; alternative build for static
;;
;; cmake -DBUILD_STATIC=1 ..
;;
;; list packages
;;
;; guix package -L . -A|grep wfm

;; by Pjotr Prins & Andrea Guarracino (c) 2023-2024

(use-modules
((guix licenses) #:prefix license:)
(guix build-system cmake)
(guix download)
(guix gexp)
(guix git-download)
(guix packages)
(guix utils)
(gnu packages algebra)
(gnu packages base)
(gnu packages bash)
(gnu packages bioinformatics)
(gnu packages build-tools)
(gnu packages compression)
(gnu packages gcc)
(gnu packages jemalloc)
(gnu packages linux) ; for util-linux column
(gnu packages llvm)
(gnu packages maths)
(gnu packages multiprecision)
(gnu packages pkg-config)
(gnu packages python)
(gnu packages version-control)
(srfi srfi-1)
(ice-9 popen)
(ice-9 rdelim))
(define-module (guix)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system cmake)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages algebra)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages bioinformatics)
#:use-module (gnu packages build-tools)
#:use-module (gnu packages compression)
#:use-module (gnu packages gcc)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages linux) ; for util-linux column
#:use-module (gnu packages llvm)
#:use-module (gnu packages maths)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages version-control)
#:use-module (srfi srfi-1)
#:use-module (ice-9 popen)
#:use-module (ice-9 rdelim))

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

Expand Down Expand Up @@ -104,7 +114,7 @@ obtain base-level alignments.")
(version (git-version "0.21" "HEAD" %git-commit))
(inputs
(modify-inputs (package-inputs wfmash-base-git)
(append clang-toolchain-17
(append clang-toolchain-18
lld
libomp
)))
Expand Down Expand Up @@ -174,6 +184,4 @@ obtain base-level alignments.")
htslib-static
)))))

wfmash-static-gcc-git ;; default deployment build
;; wfmash-gcc-git
;; wfmash-clang-git
wfmash-static-gcc-git ;; default optimized static deployment build

0 comments on commit fee6cc0

Please sign in to comment.