depot/third_party/nixpkgs/pkgs/applications/science/biology/subread/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

40 lines
834 B
Nix

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