nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 996 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 zlib, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "subread"; 10 version = "2.1.1"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/subread/subread-${finalAttrs.version}/subread-${finalAttrs.version}-source.tar.gz"; 14 sha256 = "sha256-Y5LXxmgxzddn5YJRiSp5pRtvq47QupZxrV6F/xqwHqo="; 15 }; 16 17 buildInputs = [ 18 zlib 19 ]; 20 21 configurePhase = '' 22 runHook preConfigure 23 24 cd src 25 cp Makefile.${if stdenv.hostPlatform.isLinux then "Linux" else "MacOS"} Makefile 26 27 runHook postConfigure 28 ''; 29 30 makeFlags = [ "CC_EXEC=cc" ]; 31 32 installPhase = '' 33 mkdir $out 34 cp -r ../bin $out 35 ''; 36 37 meta = { 38 broken = stdenv.hostPlatform.isDarwin; 39 description = "High-performance read alignment, quantification and mutation discovery"; 40 license = lib.licenses.gpl3; 41 maintainers = with lib.maintainers; [ jbedo ]; 42 platforms = [ 43 "x86_64-darwin" 44 "x86_64-linux" 45 ]; 46 homepage = "https://subread.sourceforge.net/"; 47 }; 48 49})