nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 53 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 glib, 8 gsl, 9 libdivsufsort, 10 llvmPackages, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "andi"; 15 version = "0.14"; 16 17 src = fetchFromGitHub { 18 owner = "evolbioinf"; 19 repo = "andi"; 20 tag = "v${finalAttrs.version}"; 21 hash = "sha256-tjQ9exFyqu/xnbUGpF6k0kE5C1D93kISjRErwHfjW9E="; 22 }; 23 24 nativeBuildInputs = [ 25 autoreconfHook 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 gsl 31 libdivsufsort 32 ] 33 ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ]; 34 35 configureFlags = [ (lib.enableFeature finalAttrs.finalPackage.doCheck "unit-tests") ]; 36 37 nativeCheckInputs = [ glib ]; 38 39 doCheck = true; 40 41 preCheck = '' 42 patchShebangs ./test 43 ''; 44 45 meta = { 46 description = "Efficient Estimation of Evolutionary Distances"; 47 homepage = "https://github.com/evolbioinf/andi"; 48 license = lib.licenses.gpl3Plus; 49 maintainers = with lib.maintainers; [ natsukium ]; 50 mainProgram = "andi"; 51 platforms = lib.platforms.all; 52 }; 53})