smoove: Initial packaging

This commit is contained in:
Tyson Whitehead
2019-11-07 17:27:33 -05:00
parent 3902499aaf
commit 0bbaae3038
3 changed files with 280 additions and 0 deletions

41
pkgs/smoove/default.nix Normal file
View File

@@ -0,0 +1,41 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn, makeWrapper
, gzip, gsort, htslib, lumpy, samtools, svtyper, mosdepth }:
buildGoPackage rec {
name = "smoove-${version}";
version = "0.2.4";
goPackagePath = "github.com/brentp/smoove";
src = fetchgit {
rev = "v${version}";
url = "https://github.com/brentp/smoove.git";
sha256 = "0jyycc3rjy406qkc17pfagy44bnkmgk348plqwqqpcawdpwpj57v";
};
postFixup = ''
declare -p
wrapProgram "$bin/bin/smoove" \
--suffix PATH : "${gzip}/bin" \
--suffix PATH : "${gsort}/bin" \
--suffix PATH : "${htslib}/bin" \
--suffix PATH : "${lumpy}/bin" \
--suffix PATH : "${samtools}/bin" \
--suffix PATH : "${svtyper}/bin" \
--suffix PATH : "${mosdepth}/bin"
'';
goDeps = ./deps.nix;
nativeBuildInputs = [
makeWrapper
];
meta = with stdenv.lib; {
homepage = https://github.com/brentp/smoove;
description = "Wrap existing software and adds some internal read-filtering to simplify calling and genotyping structural variants.";
platforms = platforms.all;
license = licenses.asl20;
};
}