Files
nixpkgs/pkgs/by-name/ar/aragorn/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
installShellFiles,
}:
let
man = fetchurl {
url = "https://web.archive.org/web/20230608093053if_/http://www.ansikte.se/ARAGORN/Downloads/aragorn.1";
hash = "sha256-bjD22dpkQZcGR0TwMxdpaed4VZZO2NUOoAw4o66iyS4=";
};
in
stdenv.mkDerivation (finalAttrs: {
version = "1.2.41";
pname = "aragorn";
src = fetchurl {
url = "http://www.ansikte.se/ARAGORN/Downloads/aragorn${finalAttrs.version}.c";
hash = "sha256-kqMcxcCwrRbU17AZkZibd18H0oFd8TX+bj6riPXpf0o=";
};
dontUnpack = true;
nativeBuildInputs = [
installShellFiles
];
buildPhase = ''
runHook preBuild
$CC -O3 -ffast-math -finline-functions -o aragorn $src
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin && cp aragorn $out/bin
installManPage ${man}
runHook postInstall
'';
meta = with lib; {
description = "Detects tRNA, mtRNA, and tmRNA genes in nucleotide sequences";
mainProgram = "aragorn";
homepage = "https://www.trna.se/ARAGORN/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.bzizou ];
platforms = platforms.unix;
};
})