Unverified Commit 2b8abed1 authored by Gavin John's avatar Gavin John Committed by Gavin John
Browse files

paup: init at 4.0a169

parent eb22f916
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchurl,
  autoPatchelfHook,
  curl,
  gfortran,
  zlib,
}:

stdenvNoCC.mkDerivation {
  pname = "paup";
  version = "4.0a168";

  src = fetchurl {
    url = "http://phylosolutions.com/paup-test/paup4a168_centos64.gz";
    hash = "sha256-41dZswlrIQ05f1zJzId78DKmPf0QH1SfrexzvCAUxq8=";
  };

  unpackPhase = ''
    runHook preUnpack

    gunzip -c $src > paup

    runHook postUnpack
  '';

  nativeBuildInputs = [ autoPatchelfHook ];
  buildInputs = [
    curl
    gfortran
    zlib
  ];

  installPhase = ''
    runHook preInstall

    install -Dm755 paup -t $out/bin

    runHook postInstall
  '';

  meta = {
    description = "A software package for inferring evolutionary trees";
    homepage = "http://phylosolutions.com/paup-test/";
    license = lib.licenses.unfree;
    sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
    maintainers = with lib.maintainers; [ pandapip1 ];
    mainProgram = "paup";
    platforms = [ "x86_64-linux" ];
  };
}