forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, gcc, zlib, python27 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ecopcr-0.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://git.metabarcoding.org/obitools/ecopcr/uploads/6f37991b325c8c171df7e79e6ae8d080/${name}.tar.gz";
|
|
sha256 = "10c58hj25z78jh0g3zcbx4890yd2qrvaaanyx8mn9p49mmyf5pk6";
|
|
};
|
|
|
|
sourceRoot = "ecoPCR/src";
|
|
|
|
buildInputs = [ gcc python27 zlib ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -v ecoPCR $out/bin
|
|
cp -v ecogrep $out/bin
|
|
cp -v ecofind $out/bin
|
|
cp -v ../tools/ecoPCRFormat.py $out/bin/ecoPCRFormat
|
|
chmod a+x $out/bin/ecoPCRFormat
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Electronic PCR software tool";
|
|
longDescription = ''
|
|
ecoPCR is an electronic PCR software developed by the LECA. It
|
|
helps you estimate Barcode primers quality. In conjunction with
|
|
OBITools, you can postprocess ecoPCR output to compute barcode
|
|
coverage and barcode specificity. New barcode primers can be
|
|
developed using the ecoPrimers software.
|
|
'';
|
|
homepage = "https://git.metabarcoding.org/obitools/ecopcr/wikis/home";
|
|
license = licenses.cecill20;
|
|
maintainers = [ maintainers.metabar ];
|
|
};
|
|
}
|