-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_patching_and_stats
- Loading branch information
Showing
14 changed files
with
335 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
|
||
pkgs.callPackage ./wfmash.nix { | ||
inherit (pkgs) stdenv fetchFromGitHub cmake gsl gmp makeWrapper jemalloc htslib git zlib pkgconfig; | ||
inherit (pkgs) stdenv fetchFromGitHub cmake gsl gmp makeWrapper jemalloc htslib git zlib pkg-config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ pkgs ? import <nixpkgs> { } | ||
, pkgsLinux ? import <nixpkgs> { system = "x86_64-linux"; } | ||
}: | ||
|
||
let | ||
wfmash = pkgs.callPackage ./wfmash.nix { }; | ||
in | ||
pkgs.dockerTools.buildImage { | ||
name = "wfmash-docker"; | ||
tag = "latest"; | ||
copyToRoot = [ wfmash ]; | ||
config = { | ||
Entrypoint = [ "${wfmash}/bin/wfmash" ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
;; To use this file to build a static version of wfmash using git HEAD: | ||
;; | ||
;; guix build -f guix.scm | ||
;; | ||
;; To get a development container using a recent guix (see `guix pull`) | ||
;; | ||
;; guix shell -C -D -f guix.scm | ||
;; | ||
;; and inside the container | ||
;; | ||
;; mkdir build | ||
;; cd build | ||
;; cmake .. | ||
;; make | ||
;; | ||
;; For the tests you may need /usr/bin/env. Inside the container: | ||
;; | ||
;; mkdir -p /usr/bin ; ln -s $GUIX_ENVIRONMENT/bin/env /usr/bin/env | ||
;; | ||
;; by Pjotr Prins & Andrea Guarracino (c) 2023 | ||
|
||
(use-modules | ||
((guix licenses) #:prefix license:) | ||
(guix gexp) | ||
(guix packages) | ||
(guix git-download) | ||
(guix build-system cmake) | ||
; (guix gexp) | ||
(guix utils) | ||
(gnu packages algebra) | ||
(gnu packages base) | ||
(gnu packages bioinformatics) | ||
(gnu packages build-tools) | ||
(gnu packages compression) | ||
; (gnu packages curl) | ||
(gnu packages gcc) | ||
(gnu packages jemalloc) | ||
(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 %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 wfmash-git | ||
(package | ||
(name "wfmash-git") | ||
(version (git-version "0.10.7" "HEAD" %git-commit)) | ||
(source (local-file %source-dir #:recursive? #t)) | ||
(build-system cmake-build-system) | ||
(arguments | ||
`(#:tests? #f)) ;; Disable the test phase | ||
(inputs | ||
`( | ||
;; ("clang" ,clang) ; add this to test clang builds | ||
;; ("lld" ,lld) ; add this to test clang builds | ||
("gcc" ,gcc-12) | ||
("gsl" ,gsl) | ||
("gmp" ,gmp) | ||
("make" ,gnu-make) | ||
("pkg-config" ,pkg-config) | ||
("jemalloc" ,jemalloc) | ||
("htslib" ,htslib) | ||
("git" ,git) | ||
; ("bc" ,bc) ; for tests | ||
("coreutils" ,coreutils) ; for echo and env in tests | ||
; ("curl" ,curl) | ||
; ("parallel" ,parallel) ; for wfmash-parallel | ||
("bzip2" ,bzip2) ; libz2 part of htslib | ||
("xz" ,xz) ; | ||
("zlib" ,zlib))) | ||
(synopsis "wfmash") | ||
(description | ||
"wfmash.") | ||
(home-page "https://github.com/waveygang/wfmash") | ||
(license license:expat))) | ||
|
||
wfmash-git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.