depot/pkgs/applications/science/biology/subread/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

41 lines
891 B
Nix

{ lib
, stdenv
, fetchurl
, zlib
}:
stdenv.mkDerivation rec {
pname = "subread";
version = "2.0.7";
src = fetchurl {
url = "mirror://sourceforge/subread/subread-${version}/subread-${version}-source.tar.gz";
sha256 = "sha256-/tjt3hn52NiqEo721K5atnvOLb8iWJ9AlJlaE6cVq3U=";
};
buildInputs = [
zlib
];
configurePhase = ''
cd src
cp Makefile.${if stdenv.hostPlatform.isLinux then "Linux" else "MacOS"} Makefile
'';
makeFlags = [ "CC_EXEC=cc" ];
installPhase = ''
mkdir $out
cp -r ../bin $out
'';
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "High-performance read alignment, quantification and mutation discovery";
license = licenses.gpl3;
maintainers = with maintainers; [ jbedo ];
platforms = [ "x86_64-darwin" "x86_64-linux" ];
homepage = "https://subread.sourceforge.net/";
};
}