4f0dadbf38
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
64 lines
1.7 KiB
Nix
64 lines
1.7 KiB
Nix
{
|
|
BioPerl,
|
|
IOString,
|
|
buildPerlModule,
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
kent,
|
|
lib,
|
|
libmysqlclient,
|
|
libpng,
|
|
openssl,
|
|
}:
|
|
|
|
buildPerlModule rec {
|
|
pname = "Bio-BigFile";
|
|
version = "1.07";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://cpan/authors/id/L/LD/LDS/Bio-BigFile-${version}.tar.gz";
|
|
sha256 = "277b66ce8acbdd52399e2c5a0cf4e3bd5c74c12b94877cd383d0c4c97740d16d";
|
|
};
|
|
|
|
# Only kent 335 works with Bio-BigFile, see
|
|
# - official documentation: https://www.ensembl.org/info/docs/tools/vep/script/vep_download.html#bigfile
|
|
# - one of the developer's answer: https://github.com/Ensembl/ensembl-vep/issues/1412
|
|
# BioBigfile needs the environment variable KENT_SRC to find kent
|
|
KENT_SRC = kent.overrideAttrs (old: rec {
|
|
pname = "kent";
|
|
version = "335";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ucscGenomeBrowser";
|
|
repo = "kent";
|
|
rev = "v${version}_base";
|
|
sha256 = "1455dwzpaq4hyhcqj3fpwgq5a39kp46qarfbr6ms6l2lz583r083";
|
|
};
|
|
|
|
patches = [
|
|
# Fix for linking error with zlib. Adding zlib as a dependency is not enough
|
|
./kent-utils.patch
|
|
# Vendoring upstream patch (not merged in uscsGenomeBrowser/kent)
|
|
./kent-316e4fd40f53c96850128fd65097a42623d1e736.patch
|
|
];
|
|
});
|
|
|
|
buildInputs = [
|
|
BioPerl
|
|
IOString
|
|
libpng
|
|
libmysqlclient
|
|
openssl
|
|
];
|
|
|
|
# Ensure compatibility with GCC-11 (compilation fails if -Wno-format-security)
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://metacpan.org/dist/Bio-BigFile";
|
|
description = "Manipulate Jim Kent's BigWig and BigBed index files for genomic features";
|
|
license = licenses.artistic2;
|
|
maintainers = with maintainers; [ apraga ];
|
|
};
|
|
}
|