diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-10 01:11:23 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-10 01:11:23 +0100 |
commit | c8d05d8abadb244bc4e6cee75d450978d1f09a61 (patch) | |
tree | 2d710425b8e3f78e84d5e46abb3397cb1b34ec18 /nixpkgs/pkgs/by-name/sa/salmon/package.nix | |
parent | ad899504860973e98351c922ecb934595f2c0f19 (diff) | |
parent | 0ed96eed101462bf05e1e99e1bbadcd49b4eb302 (diff) | |
download | nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.gz nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.bz2 nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.lz nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.xz nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.zst nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/sa/salmon/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/sa/salmon/package.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/sa/salmon/package.nix b/nixpkgs/pkgs/by-name/sa/salmon/package.nix new file mode 100644 index 000000000000..e4442e96fd6f --- /dev/null +++ b/nixpkgs/pkgs/by-name/sa/salmon/package.nix @@ -0,0 +1,84 @@ +{ lib +, stdenv +, autoreconfHook +, bash +, boost +, bzip2 +, cereal_1_3_2 +, cmake +, curl +, fetchFromGitHub +, jemalloc +, libgff +, libiconv +, libstaden-read +, pkg-config +, tbb_2021_8 +, xz +, zlib +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "salmon"; + version = "1.10.2"; + + pufferFishSrc = fetchFromGitHub { + owner = "COMBINE-lab"; + repo = "pufferfish"; + rev = "salmon-v${finalAttrs.version}"; + hash = "sha256-JKbUFBEsqnENl4vFqve1FCd4TI3n9bRi2RNHC8QGQGc="; + }; + + src = fetchFromGitHub { + owner = "COMBINE-lab"; + repo = "salmon"; + rev = "v${finalAttrs.version}"; + hash = "sha256-kwqoUmVCqjr/xRxJjQKaFjjCQW+MFASHJ2f9OiAumNU="; + }; + + patches = [ + # Use pufferfish source fetched by nix + ./fetch-pufferfish.patch + ]; + + postPatch = "patchShebangs ."; + + buildInputs = [ + (boost.override { enableShared = false; enabledStatic = true; }) + bzip2 + cereal_1_3_2 + curl + jemalloc + libgff + libstaden-read + tbb_2021_8 + xz + zlib + ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; + + nativeBuildInputs = [ cmake pkg-config ]; + + strictDeps = true; + + meta = { + description = + "Tool for quantifying the expression of transcripts using RNA-seq data"; + longDescription = '' + Salmon is a tool for quantifying the expression of transcripts + using RNA-seq data. Salmon uses new algorithms (specifically, + coupling the concept of quasi-mapping with a two-phase inference + procedure) to provide accurate expression estimates very quickly + and while using little memory. Salmon performs its inference using + an expressive and realistic model of RNA-seq data that takes into + account experimental attributes and biases commonly observed in + real RNA-seq data. + ''; + homepage = "https://combine-lab.github.io/salmon"; + downloadPage = "https://github.com/COMBINE-lab/salmon/releases"; + changelog = "https://github.com/COMBINE-lab/salmon/releases/tag/" + + "v${finalAttrs.version}"; + license = lib.licenses.gpl3Only; + platforms = lib.platforms.all; + maintainers = [ lib.maintainers.kupac ]; + }; +}) |